Error with paths with ()'s
@lbutlr
kremels at kreme.com
Tue Aug 18 13:47:31 UTC 2015
> On Aug 17, 2015, at 5:03 PM, Wayne Davison <wayned at samba.org> wrote:
>
> 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.
That is the case if {} contains simply a file name, but is not the case when {} contains a relative path as well.
/path/to/root/path/to/file
cd /path/to/root
find . -type f -exec rsync {} /path/to/dest/{}
=> /path/to/dest/path/to/file
find . -type f -exec rsync {} /path/to/dest/
=> /path/to/dest/file
> 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 RSYNC_PROTECT_ARGS=1", 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.
10.0.0.11:/Drive5/\"{}\”
Works.
--
"Any man who says he can see through women is really missing a lot." -
Groucho Marx
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.samba.org/pipermail/rsync/attachments/20150818/231b14c9/attachment.html>
More information about the rsync
mailing list