A WHM server has been running cPanel’s nightly backup to a remote destination for months. The first time a customer needs a restore, the team discovers the backup is missing MySQL data, the retention only goes back 7 days, and the remote destination is full. cPanel’s backup system is configurable enough to do this right; the default configuration is conservative in ways that surprise operators. The fix is a deliberate pass through Backup Configuration and a test restore.
What’s happening
WHM Backup Configuration (WHM > Backup > Backup Configuration) controls: what to back up (home, MySQL, system files, configuration), retention (how many days to keep), destination (local, FTP, SFTP, S3, rsync, Google Drive), schedule (daily, weekly, monthly), and exclusions. The default settings often skip MySQL on the assumption it’ll be picked up elsewhere, keep only 7 days of retention, and use a local destination that fills before anyone notices. Each toggle is small; collectively they determine whether your backups are real.
How to verify
Read the current backup configuration:
whmapi1 backup_config_get
ls -la /backup/
cat /etc/cpbackup.conf
whmapi1 backup_destination_list
tail -100 /usr/local/cpanel/logs/cpbackup/cpbackup.log
The config_get output shows every backup-related setting. The /backup/ directory shows what’s currently stored locally; if you’ve configured remote, this should still have a recent local pass before transfer.
The fix
The configuration items that matter:
- Enable MySQL backups separately: the “Backup Databases” option must be set to “Per Account Only” or “Per Account and Entire MySQL Directory”. Without this, the cpmove archives are missing the database content.
- Set retention to match your RPO: 7 daily, 4 weekly, 3 monthly is a reasonable starting point. For compliance-heavy workloads, extend monthly retention. The
BACKUPRETAIN(daily),BACKUPWEEKLYRETENTION,BACKUPMONTHLYRETENTIONvalues control these. - Use a remote destination, never local-only: configure
whmapi1 backup_destination_addfor an SFTP, S3, or rsync target. The local/backup/is a working directory; the remote is the actual backup. Verify withbackup_destination_validate. - Exclude what you don’t need: cPanel can exclude specific paths from per-account backups (large media you handle separately, cache directories). Configured in
/etc/cpbackup.confor the WHM UI. - Schedule the backup outside peak hours: the default 1 AM is fine for most environments; cPanel takes a global lock for the duration. Confirm the lock doesn’t overlap your highest-load window.
- Test a restore quarterly: pick a non-critical account, restore from yesterday’s backup to a non-production server, run the test, document the time. If you can’t restore the smallest account in less than an hour, the backup isn’t operationally usable.
Backups are exactly the kind of infrastructure that looks fine until you need it. Stack Harbor’s cPanel server management practice runs the configuration audit, the destination validation, and the quarterly restore drill so the answer to “can we restore” is always tested, not assumed.