Skip to content

Account restore failed with "no such backup": recovery paths

A "no such backup" failure during cPanel restore has three causes — wrong path, corrupted index, or a backup that was never written. Each one has a different recovery.

A cPanel restore that fails with “no such backup found for that user” is one of the more stressful errors, because by the time you see it you usually need the backup. The error has three distinct meanings depending on where the restore is looking, and the recovery path is different for each. Reading the actual log instead of the WHM popup is the first step.

What’s happening

cPanel backups live in three layers: the daily/weekly/monthly local archives (/backup/<date>/accounts/<user>.tar.gz), the remote destination if configured (S3, rsync target, FTP), and the legacy “Backup Configuration” output. The restore looks for the file at a specific path. “No such backup” can mean the file is missing, the index lists it but the file is unreadable, the file exists but is corrupted (zero bytes from a failed write), or the backup was scheduled but never ran.

How to verify

Confirm what backups actually exist:

# what cPanel thinks should be there
whmapi1 backup_destination_list
# what is in the local backup tree
find /backup -name "<user>*.tar.gz" -type f | head
ls -la /backup/<date>/accounts/<user>.tar.gz
# is the file readable and non-zero?
file /backup/<date>/accounts/<user>.tar.gz
gzip -t /backup/<date>/accounts/<user>.tar.gz && echo "OK"
# remote destination state
whmapi1 backup_destination_get id=<destination-id>
# transport log
tail -100 /usr/local/cpanel/logs/cpbackup_transporter.log

The fix

  1. Wrong path in the restore call — if you ran /scripts/restorepkg /custom/path/<user>.tar.gz and the path is wrong, the error is literal. Use find /backup -name "<user>*" -type f to locate the file.
  2. Corrupted archive — gzip -t fails: the archive is broken. The fix is to grab the previous day’s archive, or pull from remote destination if configured. A corrupted local archive means the cpbackup run that produced it ran out of disk midway through.
  3. Backup never ran — tail /usr/local/cpanel/logs/cpbackup shows the daily run output. If the user is missing entirely, they may have been added after the last backup, or excluded by /etc/cpbackup-userskip.conf.
  4. Remote-only backups — if the local tree was rotated out but the remote has it, pull from remote first: whmapi1 backup_destination_validate id=<id>. Then download to /backup/<date>/accounts/<user>.tar.gz and restore from there.
  5. Index inconsistency — whmapi1 backup_destination_list shows a backup that does not exist on disk. The index entry is stale. Re-run /scripts/manage_dist_backups --recheck to refresh the index.

If no backup exists at all and the account data is still on the source host, the recovery path is a Live Transfer rather than a restore. Stack Harbor handles backup-failure triage under WHM server management — start a conversation when restores fail and time matters.