The backup Script

Valid for versions 82 through the latest version


Last modified: May 13, 2020

Overview

Use the /usr/local/cpanel/bin/backup script to run a manual backup in WHM via the command line. The system reads the backup configuration file and then performs the actions defined in the file. By default, the system performs this process in the background. You can review the log file in the /usr/local/cpanel/logs/cpbackup directory.

Run a manual backup

To run a backup manually, log in to the command line via SSH as the root user and run the following command:

/usr/local/cpanel/bin/backup

Options

The /usr/local/cpanel/bin/backup script accepts the following options:

Option Description Example
debug Runs the backup in the foreground and prints its progress on the command line. --debug
force Performs an additional backup, even if the system already contains up-to-date backup files. --force
allow-override When the system performs the backup, use the pkgacct script in the the /var/cpanel/lib/Whostmgr/Pkgacct/pkgacct directory. --allow-override
help Displays additional information. --help
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

The servers_queue Script

Valid for versions 82 through the latest version Last modified: June 21, 2021...

The auto-adjust-mysql-limits Script

Valid for versions 82 through the latest version Last modified: June 21, 2021...

The autossl_check Script

Valid for versions 82 through the latest version Last modified: May 13, 2020 Overview...

The backup_restore_manager Script

Valid for versions 82 through the latest version Last modified: July 28, 2022...

The backups_clean_metadata_for_missing_backups Script

Valid for versions 82 through the latest version Last modified: May 13, 2020 Overview...