This guide explains how to start a backup on a cPanel & WHM server without waiting for the next scheduled backup. It also shows you how to check progress and confirm that the backup has finished.
Before you start
You need access to the server’s root account, which is the main administrator account. These commands are for server administrators; a standard cPanel account does not have the required access.
- Log in to WHM as root and open Server Configuration > Terminal. Alternatively, connect to the server using SSH as root.
- Check the settings in WHM > Backup > Backup Configuration, including where backups are saved. Check which accounts are selected for backup and that there is enough storage space.
The command uses the server’s existing backup settings. It does not automatically back up every account. Check that the accounts you need are included, and make sure another backup is not already running.
Start a backup
Enter this command in the terminal and press Enter:
/usr/local/cpanel/bin/backupThe backup normally runs in the background. This means it continues while the terminal becomes available for other commands. The command returning to the prompt does not mean the backup has finished.
Check whether the backup has finished
The backup records its progress and any errors in a log file. Open the log file for the current backup in this directory:
/usr/local/cpanel/logs/cpbackupUse the file’s date and time to identify the correct run. Check the log for completion and any errors. Then check that the expected backup files are present where WHM is set to save them.
Optional: show progress in the terminal
If you prefer to see progress directly in the terminal, use this command instead of the command above:
/usr/local/cpanel/bin/backup --debugKeep the terminal session open while the backup runs. This command starts a new backup and displays its progress; it does not show the progress of a backup you have already started. Choose one of the two commands, rather than running both.
Optional: create another backup
If up-to-date backup files already exist and you still need another backup, add --force:
/usr/local/cpanel/bin/backup --forceCheck the available storage space and make sure another backup is not running before using this option. If a backup has failed, read its log and resolve the cause before trying again.
