How to use 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!

You need help managing your dedicated server? We got it! SiteGround experts not only write helpful articles, but also manage the servers for our clients so they don’t have to read articles like this one.Learn more.

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How to reboot your dedicated server via WHM?

The WHM panel provides two options for a server reboot: Forceful Server Reboot Graceful...

How to change the password for the root user via WHM?

In order to change the password for the root user you will need to access the WHM panel and...

How to access WHM?

WHM stands for Web Host Manager. This is the cPanel's server administrative management software....

How to restart a service on my dedicated server?

In order to restart a service on your dedicated machine, follow these steps: Log in your WHM...

How to edit the MX records of a domain on my dedicated server via WHM?

In order to edit an MX record of a domain on your dedicated server, follow these steps: Log in...