How to Backup and Restore cPanel Account via SSH

It is very necessary to do a backup of your content on regular basis at least once in a week.Cpanel provides great script to make cpanel backup very easy.

Commands like pkgacct is largely used for backing up cpanel hosting accounts and restorepkg for restoring cpanel accounts via the SSH.

To create the backup of cPanel account via SSH login to SSH as a Root user.

After that run the following command string on the command line interface:Note that backup will be created in the current directory we are in.

 

[box style=’info’]/scripts/pkgacct username[/box]

 

Second step is to Restore the cPanel account via SSH.
To restore the backup following command would be run in the directory where backup file is stored:
[box style=’info’]/scripts/restorepkg username[/box]

2 thoughts on “How to Backup and Restore cPanel Account via SSH

Leave a Reply

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