rsync icon indicating copy to clipboard operation
rsync copied to clipboard

Options how?

Open miklosban opened this issue 2 years ago • 1 comments

    $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

miklosban avatar May 23 '23 11:05 miklosban

I think you want

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

actapia avatar Jul 21 '23 01:07 actapia