[Bug 14081] --copy-command option for specifying custom file copying behaviour

samba-bugs at samba.org samba-bugs at samba.org
Fri Aug 9 15:05:41 UTC 2019


https://bugzilla.samba.org/show_bug.cgi?id=14081

--- Comment #1 from Haravikk <samba at haravikk.com> ---
Sorry, just occurred to me that rsync already has a similar style option in the
`-rsh` flag for setting a custom remote shell command, so rather than a `find
-exec` style it might make more sense to copy `-rsh` for consistency.

This means commands would take a form like:

    rsync --copy-command 'cp -c {src} {dest}' /path/to/source
/path/to/destination

i.e- the command is executed in a style similar to `bash -c`, but with special
items substituted.

I wonder actually if instead of custom special {src} and {dest} it might make
sense to just pass these as $1 and $2?

Of course it's not the implementation details that matter most, but the
functionality, any solution that can account for at least the local copy case
would be very useful in certain cases, while a solution that also covers usage
with remote source/destination can always come later.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.



More information about the rsync mailing list