<br><br><div><span class="gmail_quote">On 1/23/06, <b class="gmail_sendername">Jeff Vian</b> <<a href="mailto:jvian10@charter.net">jvian10@charter.net</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Mon, 2006-01-23 at 11:44 +0530, Ankush Grover wrote:<br>> hey friends,<br>><br>><br>> I am trying to copy the contents of some directories(/opt & /home) on<br>> my servers to another machine through rsync. The problem I am facing
<br>> is that  ssh is very restricted in my domain that is<br>><br>>          ssh is running on some other port(50,000)<br>>          only few users r allowed access.<br>><br>><br>> rsync -pzv -e "ssh -l demo --port=50000" --progress 
demo@host::mail /home/demo/ demo.swx<br>><br>> demo is the user on other machine and it has the rights to do ssh, the<br>> machine is running on port 50000<br>> and the file i want to copy is demo.swx.Right now I am trying to copy
<br>> only one file but I need to copy few directories.<br>><br>> what should be the syntax of rsync for my scenario.<br>><br>><br>Why not use scp?  It uses the ssh protocol and works similarly to cp.<br><br>
   scp -P 50000 -p -r demo@host:<source.dir> <destination.dir><br><br>should copy the entire source.dir directory tree (assuming the demo user<br>has permissions to do so) and retain original permissions, modes, etc.
<br><br>man scp for full details<br><br>> Thanks & Regards<br>><br>> Ankush Grover<br>><br></blockquote></div><br>
<br>
hey ,<br>
<br>
Thanks for your email I know about scp  but want to learn rsync also.<br>
<br>
Thanks & Regards<br>
<br>
Ankush Grover<br>
<br>
<br>