<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Aug 17, 2015, at 5:03 PM, Wayne Davison <<a href="mailto:wayned@samba.org" class="">wayned@samba.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><span style="font-family: Menlo-Regular; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">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.</span></div></blockquote><div><br class=""></div>That is the case if {} contains simply a file name, but is not the case when {} contains a relative path as well.</div><div><br class=""></div><div>/path/to/root/path/to/file</div><div>cd /path/to/root</div><div><br class=""></div><div>find . -type f -exec rsync {} /path/to/dest/{}</div><div>  => /path/to/dest/path/to/file</div><div><br class=""></div><div><div>find . -type f -exec rsync {} /path/to/dest/</div><div>  => /path/to/dest/file</div><div><br class=""></div><blockquote type="cite" class=""><div class=""><span style="font-family: Menlo-Regular; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class=""> 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 </span><span style="font-family: Menlo-Regular; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">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.</span></div></blockquote></div><div class=""><br class=""></div><span style="font-family: Menlo-Regular;" class="">10.0.0.11:/Drive5/\"{}\</span><font face="Menlo-Regular" class="">”</font><div class=""><font face="Menlo-Regular" class=""><br class=""></font></div><div class=""><font face="Menlo-Regular" class="">Works.</font></div><div class=""><br class=""></div><div class=""><div class="">


-- <br class="">"Any man who says he can see through women is really missing a lot." -<br class="">Groucho Marx


</div>
<br class=""></div></body></html>