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
- Wrong path in the restore call — if you ran
/scripts/restorepkg /custom/path/<user>.tar.gzand the path is wrong, the error is literal. Usefind /backup -name "<user>*" -type fto locate the file. - Corrupted archive —
gzip -tfails: 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. - Backup never ran —
tail /usr/local/cpanel/logs/cpbackupshows 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. - 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.gzand restore from there. - Index inconsistency —
whmapi1 backup_destination_listshows a backup that does not exist on disk. The index entry is stale. Re-run/scripts/manage_dist_backups --recheckto 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.