While it is a good and useful thing to have entire server backups, sometimes you only need to restore one or two domains. In these situations, cPanel backups make it easy for one to restore just a single site from the Web Host Manager (WHM) interface, or from the command line.
NOTE: This walkthrough assumes that you have already enabled cPanel backups in WHM, leaving you with a backup to restore from.
Restoring from WHM
NOTE: This method requires that the entire cPanel account be removed from the server before you can restore the backup. If all you need is the site files restored, this is likely NOT the backup you need, as it will remove all e-mails from the server since the date the backup was made.
First, log into WHM and click on the “Backup Restoration” page.
On the Backup Restoration page, click on the account you wish to restore to see the available backups for that account listed in the calendar. Click on the date from which you wish to restore and click the Add Account to Queue button, then finally click the Restore button to begin the restoration process.
Restoring from cPanel
In cPanel, you will find the Backups menu option in the File section. From there you will be able to download or generate the following backups:
- a full account backup
- a full home directory backup
- a MySQL database backup
- a backup of e-mail forwarders
- a backup of e-mail filters
On that same page, you can upload previously-downloaded backups to restore. The cPanel user can restore all but the full account backup; the root server administrator will need to restore the full account backup through WHM.
For the rest of the options, restoring a backup is as simple as clicking the “Choose File” button under the relevant restore section, choosing the backup from your filesystem, hitting “OK”, and then letting cPanel handle the rest. Note that if you have a lot of mail, or a lot of site files, the home directory restore can take some time while all that data uploads.
As always, should you have any questions or concerns about any part of this process, feel free to contact Liquid Web’s Heroic Support® for assistance.