The below command works perfectly and it creates "test file" on destination host.<br><br>rsync -avz /tmp/test\ file destination:/tmp/ <br>
sending incremental file list<br>
test file<br>
<br>
sent 91 bytes received 31 bytes 27.11 bytes/sec<br>
total size is 0 speedup is 0.00<br><br>The below two command doesn't work. <span style="color: rgb(255, 0, 0);">The rsync creates "test" file on destination host in both of below cases.</span><br><br>1. I want to copy "/tmp/test file" to "/tmp/test with spaces" on destination.<br>
<br>rsync -avz /tmp/test\ file destination:/tmp/test\ with\ spaces<br>sending incremental file list <br>test file <br>sent 91 bytes received 31 bytes 27.11 bytes/sec<br>total size is 0 speedup is 0.00<br><br>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.<br>
<br>rsync -avz /tmp/test\ file destination:/tmp/test\ with\ spaces/<br>sending incremental file list<br>test file<br><br>sent 91 bytes received 31 bytes 27.11 bytes/sec<br>total size is 0 speedup is 0.00<br><br>let me know if I am missing something obvious.<br>
<br>Thanks, Paresh<br>