Backups in aaPanel-websites and databases
Create, schedule, download, and restore website and database backups using aaPanel on an UnderHost VPS or dedicated server.
On this page
aaPanel includes built-in backup tools for website files and databases on your VPS or dedicated server. Scheduled tasks handle routine backups automatically. Always store copies off-server, because backups kept only on the same server are not a complete protection strategy if the server disk, account, or operating system is damaged.
Backup overview
aaPanel manages two types of backups:
- Website backups-compressed archives of the site's document root directory
- Database backups-SQL dumps of MySQL databases
Both can be created manually on demand or scheduled automatically via the Cron Jobs section. Backup files are stored in a configurable backup directory on the server (default: /www/backup/).
UnderHost also provides daily off-site backup protection on many shared hosting and cloud VPS plans, and dedicated backup solutions are available for larger environments. Treat those service-level backups as an extra safety net, not a replacement for your own tested export and restore process.
Back up website files
Manual backup via aaPanel:
- Go to aaPanel → Website
- Click on the site name
- Click the Backup tab
- Click Backup site and confirm
aaPanel creates a compressed archive of the site's files in /www/backup/. The backup appears in the list with a timestamp. Click the download icon to save it to your computer.
Back up databases
Manual database backup via aaPanel:
- Go to aaPanel → Database
- Find the database in the list
- Click the backup icon (or the Backup button)
The SQL dump is stored in /www/backup/ and listed in the database backup list. Click the download icon to save a copy.
Via SSH for large databases:
mysqldump -u DB_USER -p DB_NAME | gzip > /www/backup/db-$(date +%Y%m%d-%H%M).sql.gz
Schedule automatic backups
aaPanel's Cron Jobs section includes dedicated backup task types:
- Go to aaPanel → Cron Jobs
- Click Add task
- Set Task type to either Backup site or Backup database
- Select the site or database to back up
- Set the backup path (default
/www/backup/or another drive/folder) - Set Save the last X backups-e.g., 7 keeps one week of daily backups
- Set the schedule (e.g., daily at 3am: Hour task, 3am)
- Click Add task
Each backup archive consumes disk space on your VPS. Setting Save the last X backups prevents unlimited accumulation, but you should still monitor disk usage. A large WordPress database with daily backups retained for 30 days can consume significant storage.
Download backups off-server
Backups stored only on the server offer limited protection. Download them regularly:
- Via aaPanel interface: Backup list → click the download icon next to each backup
- Via FTP/SFTP: Connect with FileZilla, navigate to
/www/backup/, and download the archive files - Automated off-server sync: Use
rcloneto sync the backup folder to cloud storage (S3, Backblaze B2, Google Drive):
rclone sync /www/backup/ remote:my-vps-backups --min-age 1h
Schedule this with a daily cron job to run after your backup tasks complete.
If you need managed backup storage, longer retention, or help validating a restore plan, open an UnderHost support ticket from CustomerPanel and include your service ID, desired retention period, and approximate backup size.
Restore from a backup
Restore website files:
- If the backup file is on the server: aaPanel → Website → site → Backup → click Restore next to the backup
- If you have an archive from off-server: upload it via FTP/SFTP to
/www/backup/, then use the Restore button - Or extract manually via SSH:
tar -xzf site-backup.tar.gz -C /www/wwwroot/yourdomain.com/
Restore a database:
- aaPanel → Database → find the DB → click the restore icon and select the backup
- Or via SSH:
mysql -u DB_USER -p DB_NAME < backup.sql - Or via phpMyAdmin: select the database → Import → upload the SQL file
Related: aaPanel databases | aaPanel cron jobs | Backup best practices | Restore from backup
Need aaPanel hosting?
Install aaPanel on an UnderHost VPS or dedicated server when you want a simple web interface for sites, databases, SSL, and apps.





















