How To Backup and Restore Cpanel Accounts through SSH

By -

How to create backup of Individual cPanel Account through SSH?

Creating a full backup of an account through ssh is easy. You can do it through WHM or cPanel or through SSH. This will guide you through the process of backing up and restoring accounts through SSH easily.

1: Log-in to SSH as Root user using Putty or Terminal.

2: Enter the following command on the command line interface: Make sure you are in the directory where you want the backup to be saved. I will use the home directory as an example.

cd /home

Then run the command to backup the account.

/scripts/pkgacct username

It will take a little while to backup the site. It will of course depend on the resources of the server and the size of the account your backing up. When it is finished you should see something like this.

Done
pkgacctfile is: /home/cpmove-username.tar.gz
md5sum is: d0084cc4ae7e7a3308c638003528be15
size is: 7564935976

How to Restore the Individual cPanel Account through SSH?

Step 1: You need to be in the directory where the backup is located. For this example, we will be in the home directory.

cd /home

Step 2: To restore the cPanel account backups, enter the following command

/scripts/restorepkg username

I am a web developer and linux server administrator. I like helping people learn new things. I am a WordPress and CSS junkie.

Leave a Reply

Your email address will not be published. Required fields are marked *