Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Options how? #4

Open
miklosban opened this issue May 23, 2023 · 1 comment
Open

Options how? #4

miklosban opened this issue May 23, 2023 · 1 comment

Comments

@miklosban
Copy link

    $rsync = new Rsync([
                        Rsync::CONF_EXECUTABLE => $rsync_exec,
                        Rsync::CONF_OPTIONS => [
                            Rsync::OPT_DRY_RUN,
                        ],
            ]);

I assumed this way, but this is not works. Could you help me with an example please?

PHP Fatal error: Uncaught xobotyi\rsync\Exception\Command: Option 0 is not supported in /var/www/html/biomaps/resources/includes/vendor/xobotyi/rsync/src/Command.php:368...

php 7.4

@actapia
Copy link

actapia commented Jul 21, 2023

I think you want

    $rsync = new Rsync([
                        Rsync::CONF_EXECUTABLE => $rsync_exec,
                        Rsync::CONF_OPTIONS => [
                            Rsync::OPT_DRY_RUN => true
                        ],
            ]);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants