The below command works perfectly and it creates &quot;test file&quot; 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&#39;t work. <span style="color: rgb(255, 0, 0);">The rsync creates &quot;test&quot; file on destination host in both of below cases.</span><br><br>1. I want to copy &quot;/tmp/test file&quot; to &quot;/tmp/test with spaces&quot; 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/&quot;test file&quot; to Destination:/tmp/&quot;test with spaces&quot;/. The &quot;test with spaces&quot; 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>