Find us on social media
BackupsRestorationcPanel4 min read
Backups and restoration in cPanel
Full and partial backups, JetBackup, restore files, databases and emails.
Importance of backups
Backups are your safety net. A human error, a hack or a failed update can leave your site inaccessible. At Baires Host we offer automatic daily backups with JetBackup.
Full backup from cPanel
- Log in to cPanel
- Go to Files → Backup or Backup Wizard
- Click Download a Full Account Backup
- Select destination: Home Directory
- Click Generate Backup
- When ready, download the file
Note: The full backup includes files, databases, emails and configuration.
Partial backups
From the same section you can download separately:
- Home Directory: Files only
- MySQL Databases: Each individual database
- Email Forwarders/Filters: Email configuration
JetBackup (automatic backups)
JetBackup maintains daily copies of your account:
- In cPanel → Files → JetBackup
- Select the restoration type:
- Full Account: Restore everything
- Files: Specific files
- Databases: Databases
- Emails: Email accounts
- Cron Jobs: Scheduled tasks
Restore specific files
- In JetBackup → File Backups
- Select the backup date
- Navigate to the file or folder
- Click Restore or Download
Restore a database
- In JetBackup → Database Backups
- Select the database
- Choose the date
- Click Restore
Restore emails
- In JetBackup → Email Backups
- Select the email account
- Choose the date
- Click Restore
Manual backup via SSH
bash
# File backup
tar -czf ~/backup-$(date +%Y%m%d).tar.gz public_html/
# Database backup
mysqldump -u username -p database_name > ~/db-backup-$(date +%Y%m%d).sql
# Full backup (files + DB)
tar -czf ~/full-backup-$(date +%Y%m%d).tar.gz public_html/ db-backup-*.sqlSchedule automatic backups with Cron
bash
# Daily backup at 3 AM
0 3 * * * tar -czf ~/backups/site-$(date +\%Y\%m\%d).tar.gz ~/public_html/
# Weekly database backup
0 4 * * 0 mysqldump -u user -pPASS dbname > ~/backups/db-$(date +\%Y\%m\%d).sqlRestore a full backup
bash
# Extract files
cd ~/public_html
tar -xzf ~/backup-20260115.tar.gz
# Import database
mysql -u username -p database_name < ~/db-backup-20260115.sqlBest practices
- Download a local backup at least once a week
- Verify that backups can be restored (test in a staging environment)
- Keep at least 7 days of backups
- Make a backup BEFORE any major update
- Store backups in an external location (Google Drive, S3, etc.)
Was this guide helpful?