10-23-2026, 09:54 AM
aaPanel backup failed or restore not working: how to fix it
Your scheduled backup shows "failed", the backup folder is empty, the files are suspiciously small, or a restore stops halfway. Backups are the one thing you need to work when everything else breaks, so this guide shows how to find out why an aaPanel backup fails and how to restore safely.
Where aaPanel backups live
By default aaPanel keeps backups under: website archives in and database dumps in . You can change the default folder in the panel settings, so check there if these folders are empty.
Scheduled backups are tasks under Cron (type "Backup Site" or "Backup Database"). Each task has a Log button: that log is the first place to look.
Problem 1: the task says it failed
Open the task's Log and read the last lines. The common causes:
Problem 2: the task never runs
Problem 3: backup files are tiny or empty
A 1 KB archive means something went wrong silently. Common reasons: the site path changed after the task was created, exclusion rules skip everything, or the database was empty or the wrong one was selected. Look inside before you trust it:
Problem 4: restore fails or the site breaks after restoring
Database: restore from Databases > Backup, or by hand, which shows errors clearly:
Errors like "Unknown collation" or "Duplicate entry" have their own guides in the aaPanel Databases Support section.
Files: extract into a temporary folder first, check the contents, then copy them over the site:
After copying, set the owner back to the web user (), because files restored as root can cause 403 errors and failed uploads.
Large backups: a restore through the browser can time out. Use the command line for anything over a few hundred MB.
Make backups you can trust
Still stuck? Post the last lines of the task log (hide passwords and paths you consider private) and the output of.
Applies to aaPanel 7.x/8.x, October 2026. Replace example.com, DBNAME and BACKUP with your own names.
Your scheduled backup shows "failed", the backup folder is empty, the files are suspiciously small, or a restore stops halfway. Backups are the one thing you need to work when everything else breaks, so this guide shows how to find out why an aaPanel backup fails and how to restore safely.
Where aaPanel backups live
By default aaPanel keeps backups under
Code:
/www/backupCode:
/www/backup/siteCode:
/www/backup/databaseCode:
ls -lh /www/backup/site /www/backup/database | tail -20Scheduled backups are tasks under Cron (type "Backup Site" or "Backup Database"). Each task has a Log button: that log is the first place to look.
Problem 1: the task says it failed
Open the task's Log and read the last lines. The common causes:
- Disk full. A backup needs room for a full copy of the site or database. Check with . Lower the number of kept copies ("Retain" / keep count) in the task, or move old backups off the server.Code:
df -h /www
- Database dump error (lines mentioning ). Usually a crashed table or a database user without enough rights. Test a manual dump:Code:
mysqldump. Errors there point to the real database problem.Code:mysqldump -u root -p --single-transaction DBNAME > /tmp/test.sql
- Remote upload failed. If the task sends backups to S3, Google Drive, FTP or similar, an expired token or wrong bucket breaks the upload even though the local backup worked. Re-check the storage plugin's settings and test it.
Problem 2: the task never runs
- Check the task is enabled and the time is what you expect. aaPanel uses the server's time zone: .Code:
timedatectl
- Check the cron service runs: (Debian/Ubuntu) orCode:
systemctl status cron(RHEL family).Code:systemctl status crond
- Click Execute on the task once and watch the log. If it works by hand but never on schedule, the schedule or cron service is the problem.
Problem 3: backup files are tiny or empty
A 1 KB archive means something went wrong silently. Common reasons: the site path changed after the task was created, exclusion rules skip everything, or the database was empty or the wrong one was selected. Look inside before you trust it:
Code:
tar -tzf /www/backup/site/BACKUP.tar.gz | head
zcat /www/backup/database/BACKUP.sql.gz | head -30Problem 4: restore fails or the site breaks after restoring
Database: restore from Databases > Backup, or by hand, which shows errors clearly:
Code:
zcat BACKUP.sql.gz | mysql -u root -p DBNAMEFiles: extract into a temporary folder first, check the contents, then copy them over the site:
Code:
mkdir /tmp/restore && tar -xzf /www/backup/site/BACKUP.tar.gz -C /tmp/restore
ls /tmp/restoreCode:
chown -R www:www /www/wwwroot/example.comLarge backups: a restore through the browser can time out. Use the command line for anything over a few hundred MB.
Make backups you can trust
- Keep at least one copy off the server. A backup on the same disk dies with the server.
- Test a restore once a month on a test site. See Verify a full WordPress backup restore in aaPanel.
- Back up databases more often than files; they change faster.
Still stuck? Post the last lines of the task log (hide passwords and paths you consider private) and the output of
Code:
df -hApplies to aaPanel 7.x/8.x, October 2026. Replace example.com, DBNAME and BACKUP with your own names.

