How to backup and restore it through WHM/cPanel

To backup and restore backup through WHM

In this article we will learn how to backup and restore backup through WHM/cPanel.

Login to WHM Home page and click Backup.

Click Backup configuration. In global settings section, Enable the backup status and Choose Save configuration.


You can also use Legacy backup config to take backup.
Enable Backup Status, choose the intervals and click Save.

To choose a particular user

Go to Backup user selection and choose the backup for a particular user.

To restore the backup

Select the backup to be restored and click restore. The queue is currently empty because we didn' t take any backup.

To Rollback

Click Configuration File Rollback. It displays all the services installed. Now select the respective config file to be restored.

Choose the preferred backup and Click Restore.

To restore Multiple backups

To restore multiple backups at the same time, click Legacy Multiple backups.

Select the type of backup to be stored and click Start Restore.

Once you select the restore option it displays all the Username, select your preferred account.

To restore a full backup

Click Restore a Full Backup/cpmove File. It displays all the backup formats along with the location. Now choose the Transfer Method and click restore button.


Whenever an action is performed using this tool a notification is sent to the mail.

For example, if the backup process is completed on mentioned time. A mail will be sent to the registered mail-id as shown below.

FAQ
Q
Where does the system store backup logs?
A
The system stores backup logs and backup error logs in the /usr/local/cpanel/logs/cpbackup/ directory.
Q
What does the system store in a backup?
A
System backup files include system files and directories.
Account backup files include home directory contents, databases, email and email settings, DNS records, and other account-related information.
Q
Can I select specific users' accounts to back up?
A
Use WHM's Backup User Selection interface (WHM >> Home >> Backup >> Backup User Selection) to select specific cPanel accounts to back up.
Q
Which scripts run backups?
A
The following scripts are the main scripts that run backups:
/usr/local/cpanel/bin/backup
/usr/local/cpanel/scripts/pkgacct
Q
Can we able to restore it via username ?
A
Yes we do have two methods one is via username and other is file