---
title: "Scheduling cPanel Backups in WHM"
description: "With our VPS and Dedicated Hosting plans you can automatically perform cPanel backups. This allows you to schedule and save regular backups of your accounts to your server or an external destination..."
url: https://www.inmotionhosting.com/support/website/setup-scheduled-cpanel-backups/
date: 2018-01-30
modified: 2023-02-13
author: "InMotion Hosting Contributor"
categories: ["Backups and Restorations", "cPanel", "WebHost Manager (WHM)", "Website"]
type: post
lang: en
---

# Scheduling cPanel Backups in WHM

With our VPS and Dedicated Hosting plans you can automatically perform **cPanel backups**. This allows you to schedule and save regular backups of your accounts to your server or an external destination such as *Amazon*, *Google Drive*, or *FTP*. In this tutorial, we will show you how to **Configure cPanel Backups in WHM**.

Keep in mind it uses disk space if you save backups to the server. Due to this, we recommend downloading and storing them in another location such as an external drive or local computer. This also protects the backups in case of server issues, since you have them saved to another location. Depending on how often you do backups and the cPanel users you host, it may be beneficial to also [disable individual cPanel backups](https://www.inmotionhosting.com/support/website/how-to-enable-or-disable-backups-for-users-of-your-vps/).

You can always purchase our auto [Backup Manager](https://www.inmotionhosting.com/support/website/backup-and-restore/) for easier backup management.

![How to Schedule cPanel Backups in WHM](https://i.ytimg.com/vi_webp/-aYD2oDQlyU/maxresdefault.webp)

*Don’t have time to read our full guide? Watch our walk-through video.*

**Note:** You will need [root](https://www.inmotionhosting.com/support/amp/obtain-root-access/) access to complete this guide.

## Configuring cPanel Backups

1. [Log into WHM](https://www.inmotionhosting.com/support/edu/whm/log-into-whm/) as the “root” user.
2. Type ‘backup’ in the search field, then click on the **Backup Configuration** option the *Backup*.  ![Schedule cPanel Backups in WHM - Backup Configuration](https://www.inmotionhosting.com/support/wp-content/uploads/2023/02/whm-backup-configuration.png)
3. In the *Backup Status* section click the **Enable** option. You will then have additional options available for configuring your backups. ![Schedule cPanel Backups in WHM - Enable Backups](https://www.inmotionhosting.com/support/wp-content/uploads/2023/02/enable-backup-configuration.png) Set your Global Settings.![Schedule cPanel Backups in WHM - Global Settings](https://www.inmotionhosting.com/support/wp-content/uploads/2023/02/global-settings.png) Backup Type Choose one of the options to define how the server will store the backup.    Compresses Saves all information in compressed file. This takes more time but uses less disk space. Uncompressed Saves all information in an uncompressed format. This uses more disk space but is faster. Incremental Stores only one uncompressed file. It saves only updated information and replaces that. This limits the restoration settings but is faster and uses the least disk space. Minimum Free Disk Space Check You can set a disk space check here in *Percentages* (%) or *Megabytes* (MB). If you have less than the alloted space the backup will not run. Maximum destination timeout The amount of time a backup process allows to upload a single backup file. Maximum restore timeout The amount of time a backup process allows to upload a restore a backup file. Set your **Scheduling and Retention** preferences. ![Schedule cPanel Backups in WHM - Scheduling and Retention](https://www.inmotionhosting.com/support/wp-content/uploads/2023/02/scheduling-and-retention.png) Backup Daily Creates a new backup on each selected day. You must configure the days and the number of retained backups (1-9999). Backup Weekly Creates a new weekly backup on the day selected. You must configure the days and the number of retained backups (1-9999). Backup Monthly Creates a new weekly backup on the day selected. You must configure the days and the number of retained backups (1-9999).   Set your **Files** preferences. ![Schedule cPanel Backups in WHM - Select Files to Backup](https://www.inmotionhosting.com/support/wp-content/uploads/2023/02/backup-files-option.png) Backup Accounts Select this box to enable user accounts to be backed up. From there you can need to configure the following settings.    Select Users Allows you to select specific users to back up. Backup Suspended Accounts Choose if you want to backup *Suspended Accounts* by enabling or disabling this option. Backup Access Logs Choose if you want to enable or disable backups for *Access Logs*. Backup Bandwidth Data Enabling this will backup the bandwidth data from your server. Use Local DNS According to cPanel “*When enabled this option confines the domain lookup to this server only, and does not query the DNS cluster.*“ Backup System Files Select this box if you wish to backup system files. This is for server restoration and not for account restoration. It is highly recommended to enable this setting. Set your **Database** backup settings. ![Schedule cPanel Backups in WHM - Backup SQL Databases](https://www.inmotionhosting.com/support/wp-content/uploads/2023/02/backup-sql-databases.png) Per Account Only Back up the databases for each account using the *mysqldump* utility. Entire MySQL Directory Back up all of the databases on the server by backing up the */var/lib/mysql/* directory. Per Account and Entire MySQL Directory Performs backups of all databases in each account and all databases on your server. Configure your **Backup Directory**. ![Schedule cPanel Backups in WHM - Configure Backup Directory](https://www.inmotionhosting.com/support/wp-content/uploads/2023/02/07-configure.png) Default Backup Directory. Set to */backup/* by default, you can change it by entering the absolute path to your preferred directory location. Retain backups in the default backup directory. If selected, keeps a copy of the backup in the backup directory even after transferring the backup to another destination. If not selected, the copy will be deleted after the transfer. Mount Backup Drive as Needed. Select the Enable button to mount a backup drive. The server will check */etc/fstab/em> for another mount point. If disabled (default) the server will not check.* Set up your **Additional Destinations** if desired, each destination has its own setup configuration. Options are *Amazon S3*, *FTP*, *Google Drive*, *Additional Local Directory*, *Rsync*, *SFTP*, *WebDAV*, and *Custom*. ![Schedule cPanel Backups in WHM - Select Destination](https://www.inmotionhosting.com/support/wp-content/uploads/2023/02/additional-destinations.png) Click the **Save Configuration** button. ## How to Run Backup Via Command Line (SSH) Experienced users will know that WHM allows you to schedule cPanel backups and set storage specifications. But if you wanted to run manual backup scripts from the command line? That’s what this section is about. In order to run the cPanel backup script you will need to [log in as the root user](https://www.inmotionhosting.com/support/amp/obtain-root-access/), and run this script: /usr/local/cpanel/bin/backup To see the background processes as they occur, run the command with the appended option: /usr/local/cpanel/bin/backup --debug Be sure to check out related resources from the support center: [Complete guide to cPanel backups](https://www.inmotionhosting.com/support/edu/cpanel/cpanel-backups/) [cPanel education channel](https://www.inmotionhosting.com/support/edu/cpanel/) Learn more about cPanel management from our [Managed VPS Hosting Product Guide](https://www.inmotionhosting.com/support/product-guides/vps-hosting/). **Scalable VPS Infrastructure, Fully Managed** When shared hosting can’t handle your traffic, VPS delivers dedicated resources that scale with demand. Our team manages the technical complexity while you manage your business. ![check mark](https://design.inmotionhosting.com/assets/icons/standard/check-blue.svg)NVMe Storage    ![check mark](https://design.inmotionhosting.com/assets/icons/standard/check-blue.svg)High-Availability    ![check mark](https://design.inmotionhosting.com/assets/icons/standard/check-blue.svg)Ironclad Security    ![check mark](https://design.inmotionhosting.com/assets/icons/standard/check-blue.svg)Premium Support [VPS Hosting](https://www.inmotionhosting.com/vps-hosting?mktgp=t&irgwc=1&affiliates=5001860&utm_campaign=Jumbotron&utm_source=supportcenter&utm_medium=cta&utm_term=vps-cta2)
