paresh masani
2009-Jul-28 11:16 UTC
Possibly bug in rsync-3.0.6 when spaces are there in destination path
The below command works perfectly and it creates "test file" on destination host. rsync -avz /tmp/test\ file destination:/tmp/ sending incremental file list test file sent 91 bytes received 31 bytes 27.11 bytes/sec total size is 0 speedup is 0.00 The below two command doesn't work. The rsync creates "test" file on destination host in both of below cases. 1. I want to copy "/tmp/test file" to "/tmp/test with spaces" on destination. rsync -avz /tmp/test\ file destination:/tmp/test\ with\ spaces sending incremental file list test file sent 91 bytes received 31 bytes 27.11 bytes/sec total size is 0 speedup is 0.00 2. I want to copy source:/tmp/"test file" to Destination:/tmp/"test with spaces"/. The "test with spaces" is the existence folder on destination host. rsync -avz /tmp/test\ file destination:/tmp/test\ with\ spaces/ sending incremental file list test file sent 91 bytes received 31 bytes 27.11 bytes/sec total size is 0 speedup is 0.00 let me know if I am missing something obvious. Thanks, Paresh -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.samba.org/pipermail/rsync/attachments/20090728/4f1ae556/attachment.html>
Matthias Schniedermeyer
2009-Jul-28 11:41 UTC
Possibly bug in rsync-3.0.6 when spaces are there in destination path
On 28.07.2009 16:46, paresh masani wrote:> ... > let me know if I am missing something obvious.Option "-s" a.k.a. "--protect-args" is exactly for this. see 'man rsync' Bis denn -- Real Programmers consider "what you see is what you get" to be just as bad a concept in Text Editors as it is in women. No, the Real Programmer wants a "you asked for it, you got it" text editor -- complicated, cryptic, powerful, unforgiving, dangerous.