![]() |
|
Guide aaPanel Backup Failed or Restore Not Working: How to Fix It - Printable Version +- AdminsForum (https://adminsforum.com) +-- Forum: Free & open-source control panels (https://adminsforum.com/Forum-free-open-source-control-panels) +--- Forum: aaPanel (https://adminsforum.com/Forum-aapanel) +---- Forum: aaPanel Guides & Tutorials (https://adminsforum.com/Forum-aapanel-guides-tutorials) +----- Forum: aaPanel Backups & Migration Guides (https://adminsforum.com/Forum-aapanel-backups-migration-guides) +----- Thread: Guide aaPanel Backup Failed or Restore Not Working: How to Fix It (/Thread-guide-aapanel-backup-failed-or-restore-not-working-how-to-fix-it) |
aaPanel Backup Failed or Restore Not Working: How to Fix It - JAY - 10-23-2026 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 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:
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: 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
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. |