Using Rsync to Copy Folders from my Dedicated Server to a Local Hard Drive

You can use the following command to copy the content of your home folder on the server to a backup directory on your local computer:

rsync -e "ssh -p 18765" -aHz YOUR_SERVER_IP:/home/USERNAME/ /home/LOCAL_USER/BACKUP/


Change YOUR_SERVER_IP with the IP of your server, USERNAME with the cPanel username of the account you want to copy from, and LOCAL_USER/BACKUP with the path on your computer where you want the home folder to be copied.

Note! Do not forget to add the trailing slashes after the folder names otherwise sensible data can be lost!

Was this article helpful?

mood_bad Dislike 0
mood Like 0
visibility Views: 2135