using rsync to copy files from one server to another
Code August 17th, 2004if you need to move a lot of files such as moving your website to a new server, rsync via ssh is a super simple way to accomplish the task:
(execute on the new server)
rsync -av -e ssh username@oldserverhost:/home/old_home/ /home/new_home/
leave out the v parameter (verbose) if you do not wish to see the progress.








March 20th, 2007 at 5:26 am
Just quick note thanks for the info saved me a lot of time.Just a quick note for others i change my ssh port from default to private port number so this HowTo works well if need to supply ssh -p [somePort] you need to enclose it in single or double quotes like so
rsync -av -e ’ssh -p 65200′
username@oldserverhost:/home/old_home/ /home/new_home/
November 24th, 2007 at 8:46 am
Thank you so much, you saved me loads of time with this information!
Thank you again
- Chris