using rsync to copy files from one server to another
if 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.
Categories: Code
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/
Thank you so much, you saved me loads of time with this information!
Thank you again
- Chris
Dear All
(A Novice here )I have a problem , i have a websserver running on RH7 and i want to mirror the website to a server on Red hat 9. What precautions should i take for rsyncing between these two diff versions of linux.
Thanks in advance