AdminsForum

aaPanel Backups & Migration Guides

Guide aaPanel Backup Failed or Restore Not Working: How to Fix It

Started by JAY 0 replies 158 views
1JAY
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
#1
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/backup
: website archives in
Code:
/www/backup/site
and database dumps in
Code:
/www/backup/database
. You can change the default folder in the panel settings, so check there if these folders are empty.
Code:
ls -lh /www/backup/site /www/backup/database | tail -20

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:
  • Disk full. A backup needs room for a full copy of the site or database. Check with
    Code:
    df -h /www
    . Lower the number of kept copies ("Retain" / keep count) in the task, or move old backups off the server.
  • Database dump error (lines mentioning
    Code:
    mysqldump
    ). Usually a crashed table or a database user without enough rights. Test a manual dump:
    Code:
    mysqldump -u root -p --single-transaction DBNAME > /tmp/test.sql
    . Errors there point to the real database problem.
  • 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:
    Code:
    systemctl status cron
    (Debian/Ubuntu) or
    Code:
    systemctl status crond
    (RHEL family).
  • 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 -30

Problem 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 DBNAME
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:
Code:
mkdir /tmp/restore && tar -xzf /www/backup/site/BACKUP.tar.gz -C /tmp/restore ls /tmp/restore
After copying, set the owner back to the web user (
Code:
chown -R www:www /www/wwwroot/example.com
), 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
  • 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 -h
.

Applies to aaPanel 7.x/8.x, October 2026. Replace example.com, DBNAME and BACKUP with your own names.
Reply

Messages In This Thread
aaPanel Backup Failed or Restore Not Working: How to Fix It - by JAY - 10-23-2026, 09:54 AM
Possibly Related Threads…matched by title
Replies:0Views:196
Replies:0Views:203
Replies:0Views:229
Replies:0Views:240
Replies:0Views:213

Users browsing this thread: 1 Guest(s)
Forum Jump: