Backup and Restore:
Backup refers to the copying of physical or virtual files or databases to a secondary site for preservation in case of equipment failure or other catastrophe. The Replacing of all files by the backup file is called Restore.
To Create a cPanel Backup and Restore via SSH
The cPanel provides some scripts for backing up and restoring the accounts. Commands such as ‘pkgacct’ and ‘restorepkg’ are used for backup and restoring Control Panel accounts respectively via SSH. For every hosting account, backup is necessary to survive on the Internet.
First login to SSH as a root user and use the command/scripts/pkgacct USERNAME
to backup the current directory of the Control Panel account. Here username is the username of the cPanel account.
To Restore the Control Panel account use the command/scripts/restorepkg USERNAME
This is the simple method of backing up and restoring the Control Panel accounts.