How To Set The Backup Configuration In WHM?

You should consider taking the Backup of your cPanel data at a regular interval. WHM provides multiple options to configure the Backup automatically. You can keep the backup within the server or at an external destination like Amazon, Google Drive, etc. Here, we will set the Backup Configuration in WHM Panel.

Note: Taking a Backup on the server will consume the Disk space of the server. Hence, it is recommended to download the backup to the local system or the External Devices.

Steps to Set Backup Configuration On WHM Panel

  1. Login to the WHM Panel as root user.
  2. Under the Backup section, click on the Backup Configuration option.
    whm backup config
  3. Under Backup Status select checkbox Enable Backups.
    whm enable backups
  4. Select Compressed for backup type under Global Settings.
    • Compressed Backup takes more time to create a backup and uses less disk space. It backs all information.
    • Uncompress Backup uses more disk space and takes less time to generate backup. It backs all information
    • Incremental Backup will Only save the information that has changed since your last backup.

    whm backup compressed

  5. Enable Check the Available Disk Space option, and enter the amount of Disk (% or MB). The backup will not run if the disk is less than the Disk Space mentioned above.
    • Maximum Destination Backup Timeout: Enter the number of seconds during which the destination backup will attempt to run. If the destination backup attempt is not successful during this time, it will time out and stop.
    • Maximum Backup Restoration Timeout: Enter the number of seconds during which the system will attempt to run the backup restoration. If the restoration cannot be completed in the specified time, it will be canceled.

    whm backup check disk

  6. Scheduling and Retention provides you with an option to schedule the Backup at the selected day and time.
    • Daily Backup: You can take a Backup Daily by selecting all the days or selecting the days when you need the Backup.
    • Weekly Backup: Select any single day of the week to schedule a weekly backup.
    • Monthly Backup: Select the 1st or 15th day of a Month to schedule the weekly backup.
    • Retention: Enter the number of backups you need to keep in the system at one time. You need to set retention numbers for Daily, Weekly, and Monthly Backups.

    whm backup schedule

  7. File Preferences will provide the option to take specific file backups.
    • Backup User Accounts: Click on Select Users to select cPanel accounts to enable user account backups.
    • Backup Suspended Accounts: Select the option if you want to set backup for suspended cPanel accounts.
    • Backup Access Logs: Enable it to back up your cPanel access logs.
    • Back up Bandwidth Data: Enable it to back up the Bandwidth Data.
    • Use Local DNS: This will confine the domain lookup to this server only and not query the DNS cluster.
    • Back-up System Files: Select if you require the system restoration at any point in time.

    whm backup files

  8. Databases: Select the Database that which backup needs to include. Under the Backup SQL Databases section, you can choose per account, entire MySQL, or both.
    • Per Account Only: Choose to take the Database backup of each account. This will create a .sql file.
    • Entire MySQL Directory: It will take a backup of all files under var/lib/mysql/ directory.
    • Per Account and Entire MySQL Directory: It will take a backup of all files under var/lib/mysql/ directory and use the mysqldump command to create a backup.

    whm backup database

  9. Configure the Backup Directory: In this section, we will discuss backup directory configuration.
    • Default Backup Directory: You must provide the absolute backup path where you want to back up your Data.
    • Backup Staging Directory: The backup staging directory temporarily stores a remote backup’s files and directories during a backup restoration.

    whm backup config directory

    • Retain Backups in the Default Backup Directory: Retain backups in the default local backup directory, even after the system transfers the backups to another destination. If you disable this option, the system will delete the backups after they move to another destination.
    • Mount Backup Drive as Needed: Enable this option to take backup on a separate drive.

    whm backup retain backup default

  10. Click on Save Configuration to finish setting up your backup.
    whm backup save config

Additional Configuration: On the top of the page next to Backup settings, you will find Additional Destination. WHM/cPanel provides multiple options to choose from to take the backup in a different storage space. Some of them are Amazon S3, FTP, Google Drive, Additional Local Directory, Rsync, SFTP, WebDAV, and Custom.
whm backup additional destination

Follow our knowledge base article Backup of Website on Amazon S3 using WHM to set backup on additional destinations.

If you enjoyed this tutorial, then you would love our support! All Kemuhost hosting plans include 24/7 support from our amazing support team. Check out our web hosting plans and have your website migrated for free today!

Add a Comment

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