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.

  1. Log in to WHM as root and open Server Configuration > Terminal. Alternatively, connect to the server using SSH as root.
  2. 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.

Start a backup

Enter this command in the terminal and press Enter:

/usr/local/cpanel/bin/backup

WHM Terminal showing the command used to start a backup.

The 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/cpbackup

Use 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 --debug

Keep 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 --force

Check 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.