How to manage backup configuration in whm?

Backup Configuration for a cPanel/WHM Server. One of the key factors in keeping the website data intact is to keep regular backups of website files and databases. This is a WHM option with which we can scedule auto backups of all accounts and databases.

It is strongly recommended that you only use the Backup Configuration interface to configure backups for your server. cPanel plans to remove the Legacy Backup Configuration interface located at Home >> Backup >> Legacy Backup Configuration from WHM in a future release.

You need to enable Backup Configuration in the Global Settings for this option to work.

There are three backup types: Compressed, Uncompressed and Incremental. It is recommended to keep Compressed backups to save disk space and for quick and efficient data storage.

Scheduling And Retention Of Backups
====================

With this option we can schedule the backup process to the desired dates and cPanel/WHM will automatically create backups and store it in the location that we provide.

WHM offers 3 backup schedules:

Backup Daily – Create and save backups in the selected days in a week.

Backup Weekly – Create a single wekly backup every week in a selected day.

Backup Monthly – Create a monthly backup every month in a selected day.

Retain backups option is to know how many backups are to be kept in the server. For example, if you retain 4 weekly backups, in the fifth week the oldest backup will be deleted.

Files And Databases
====================

This setting allows you to configure the data you wish to backup. Please note that you will need to select either Backup Accounts or Backup System Files in order to run backups.

Backup Accounts: Backs up the user files in each cPanel user’s home directory. Click on Select Users top open the Backup User Selection interface located at Home >> Backup >> Backup User Selection.

After choosing this setting, select the type of data to include in the backup.
1.Backup Suspended Accounts: Select Enable to also backup suspended accounts. (Warning: If you do not enable this option, your server will not back up suspended accounts regardless of their settings in the Backup User Selection interface.)
2.Backup Access Logs: Select Enable to also back up up your server’s access logs and domlogs
Backup Bandwidth Data: Will also back up your server’s bandwidth data.
3.Use Local DNS: When disabled the system will back up DNS data from the DNS cluster. When enabled, the system will back up the DNS information from the server for the domain.
Backup System Files: Will back up your server’s system logs.
4.The system stores many of these files in the /etc directory
5.You must enable this seeting for server restoration but it is not needed for individual account restores. Enabling this setting is highly recommneded.

Database backup options are:

Per Account Only – Backup of all databases per account will be taken

Entire MySQL Directory – Backup of the entire MySQL data directory will be taken

Per Account and Entire MySQL Directory – This option is concatenation of both the above options.

Configure Backup Directory
===============

The following settings allow you to specify where you wish to save your backups. It is recommended that you save backups to a remote location as well as a local destination. If you do not select Retain backups in the default backup directory and do not specify a desination in the Additional Destinations setting, the system will return the following error: Error: Nowhere to back up: no enabled destinations found and retaining local copies is disabled. 

1.Default Backup Directory – To change the default backup directory, enter the absolute path of the desired location. By default, the system saves backups files locally to the /backup/ folder.
2.Retain Backups in the Default Backup Directory – Select to retain each account backup in the /backup/ folder after the backups transfer to a remote destination.

3.Mount Backup Drive as Needed – Enable this setting to mount a backup drive. This requires a seperate mount point and will cause the Backup Configuration process to check the /etc/fstab file for a backup mount. If a mount exists with the same name as the staging directory, the Backup Configuration process mounts the drive and backs up the data to the mount. After the backup finishes, the drive is dismounted
Additional Destinations

You can also save your backups to additional destinations. Each additional destination may increase the amount of time that the backup process requires. If the process runs too long, it may interfere with the next backup process so use caution.

1.To restore backups that exist in the additional destinations that you create, perform a remote restoration. 
2.If you use the Incremental backup type, you cannot add additional destinations.
3.To save your updated destination but not validate your changes, click Save Destination.

After you configure the desired settings, click Save Configuration at the bottom of the Backup Configuration interface. To reset all of the settings in the Backup Configuration interface to the default settings, click Reset.