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:

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/

Note : This will prompt for password of the old server.
Ignore the “v” parameter (verbose) if you do not wish to see the progress.
Thats it!!!!! 🙂

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: