Error with paths with ()'s

Wayne Davison wayned at
Mon Aug 17 23:03:01 UTC 2015

On Sun, Aug 16, 2015 at 11:13 PM, @lbutlr <kremels at> wrote:

> find . -type f -atime -1 -exec rsync -aP {}{}
> \;

The use of "{}" on the receiving (remote) side is superfluous -- just
specifying a destination dir (your .../Drive5/ path) is enough for rsync to
use the same name as the source file on the destination. For those
instances where you want/need to specify a remote filename, see the
--protect-args (-s) option (which you can make the default via "export
and which will eventually become the default in the future).  Finally, the
suggestion to use --files-from=- is a good one, which fixes all quoting
issues even on the local side.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the rsync mailing list