Before a migration, a major update, or any change you might need to undo, the last scheduled backup is rarely recent enough — you want a fresh copy taken now, this minute, not whatever ran at 2 a.m. cPanel’s backup system is built around the schedule, but it can be triggered on demand: a full forced run of all accounts, or a single-account backup when you only care about one. The trick is knowing which command does which, that a forced run ignores the “already ran today” guard, and how to confirm it actually finished before you start the risky work.
What’s happening
cPanel’s backup runner is normally fired by cron once per scheduled window. Running it by hand uses the same engine but on demand. The backup binary is /usr/local/cpanel/bin/backup; invoked plainly it respects the schedule’s state (it may decline if it thinks today’s run is done), so the on-demand trick is the --force flag, which makes it run regardless of whether a backup already happened in this window. A forced run honors the configuration — the same buckets, destinations, and account list set in Backup Configuration — it just bypasses the timing guard.
That has consequences. A forced full run backs up every account the configuration includes, which on a busy server is exactly the disk and I/O load you schedule for off-hours — kicking it off mid-day competes with live traffic. It also rotates within the buckets like any run, so a forced daily can push out the oldest daily. When you only need a safety copy of the one account you are about to change, a single-account backup (via pkgacct, which produces a standalone cpmove archive) is faster, lighter, and does not disturb the rotation. The other thing to get right is confirmation: “I ran the backup” is not the same as “the backup finished and the file exists.” The run logs to /usr/local/cpanel/logs/cpbackup/, and the archive has to actually be on disk before the forced backup has done its job.
How to verify
Check the current backup configuration so a forced run does what you expect (which accounts, where):
# What a forced run will back up, and to where
cat /var/cpanel/backups/config
whmapi1 backup_config_get
# Is a backup already running right now? (avoid overlapping runs)
ps aux | grep -E 'backup|pkgacct' | grep -v grep
After triggering, watch the run progress and confirm it completes:
# Tail the active backup log (newest log file)
ls -lt /usr/local/cpanel/logs/cpbackup/ | head
tail -f /usr/local/cpanel/logs/cpbackup/$(ls -t /usr/local/cpanel/logs/cpbackup/ | head -1)
Confirm the archive actually landed before you rely on it:
# The fresh backup file on disk, with its timestamp
ls -la /backup/$(date +%F)/accounts/ 2>/dev/null | grep <cpaneluser>
ls -la /backup/daily/ 2>/dev/null | head
# For a single-account pkgacct run, the cpmove archive
ls -la /home/cpmove-<cpaneluser>.tar.gz 2>/dev/null
The fix / steps
- Confirm what the configuration will back up first. A forced full run uses the existing Backup Configuration — same accounts, buckets, and destinations. Read
backup_config_getso you know it includes the account(s) you care about and where the files will land. A forced run that excludes the very account you are about to change protects nothing. - Check nothing is already backing up. If a scheduled or earlier manual run is in progress, starting another overlaps them and doubles the I/O load. Confirm with the
pscheck above; if a run is active, either wait for it or rely on it if it is recent enough. Do not stack backup runs on a live server. - Force a full run when you need everything copied now. Run
/usr/local/cpanel/bin/backup --forceto trigger a complete backup immediately, bypassing the “already ran” guard. This is the right tool before a server-wide change. Expect it to take as long as a normal scheduled run and to load disk and I/O — if traffic is heavy, weigh whether a single-account backup (next step) is enough. - Back up a single account when only one is at risk. If you are about to change one account, you do not need a full-server run. Produce a standalone archive with
/scripts/pkgacct <cpaneluser>— it writes acpmove-<cpaneluser>.tar.gzyou can restore from. This is faster, lighter, and does not rotate the scheduled buckets. It is the usual pre-change safety copy. - Send the forced backup to a known destination. A forced run writes to wherever the configuration points (local
/backupand any additional destinations). If you want this particular copy somewhere specific — a separate path, an offsite target — confirm the destination before running, or move the resulting archive afterward. A safety backup that lands on the same disk you are about to risk is weaker than one copied off the server. - Watch the log until it reports completion. Tail the newest file in
/usr/local/cpanel/logs/cpbackup/and wait for the run to log that it finished the account(s) you care about. A forced run that errors partway (disk full, a permissions problem) can leave a partial or missing archive. Do not move on while the log still shows the run in progress. - Confirm the archive exists and is the right size before the risky change. Check that the backup file is on disk, has a current timestamp, and is a plausible size for the account — a zero-byte or truncated archive is not a backup. This single confirmation is the entire reason for forcing the run: you are about to do something you might need to undo, so verify the undo exists first.
- Note the archive path so you can restore fast if needed. Record exactly where the fresh backup landed (
/backup/<date>/accounts/<cpaneluser>.tar.gzor/home/cpmove-<cpaneluser>.tar.gz). If the change goes wrong, you want to restore from this copy, not hunt for it under pressure. Knowing the path turns a panic into a one-command recovery.
A forced backup has done its job only when the fresh archive is confirmed on disk, the right size, and you know its path — before the change that made you run it. Stack Harbor takes on-demand cPanel backups before risky changes and verifies them under WHM server management — start a conversation when you need a verified safety copy before touching production.