Web Hosting Geeks | Web Hosting Experts
Need help? Call us 1(866)TOP-HOST

14361 reviews 1715 hosting providers

Questions & Answers

How to use rsync to copy folders from dedicated server to local hard drive?

Mar 23, 2012 by SunFun
Hi there,

I want to use rsync to copy some folders from my Dedicated server to a local hard drive, does anyone know how to do this?

I would really appreciate your advice,


1 Answer

0 votes
Mar 23, 2012 by mike231
Hi sun,

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.

hope this helps