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

--- Comment #1 from Haravikk <sa...@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.

-- 
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
  • [Bug 14081] New: --co... just subscribed for rsync-qa from bugzilla via rsync
    • [Bug 14081] --co... just subscribed for rsync-qa from bugzilla via rsync

Reply via email to