This guide explains how to create full and partial backups of your website using cPanel, as well as how to restore your files, databases, and email data when needed. Backups are essential for protecting your site from accidental changes, data loss, or security issues.
- Accessing the Backup Tools
cPanel provides two main backup tools:
- Backup
- Backup Wizard
Both tools perform similar functions, but Backup Wizard offers a more guided, step-by-step process. This article focuses on the standard Backup tool for clarity.
To access it:
- Log in to your cPanel dashboard.
- Scroll to the Files section.
- Select Backup.
- Creating a Full Account Backup
A full backup includes:
- Website files
- Databases
- Email accounts
- Email forwarders and filters
- DNS settings
- Home directory contents
To create one:
- In the Full Backup section, click Download a Full Account Backup.
- Choose a Backup Destination:
- Home Directory is the most common choice.
- Enter your email address if you want a notification when the backup is complete.
- Click Generate Backup.
Once finished, the backup file will appear in your home directory for download.
Note: Full backups cannot be restored directly through cPanel. They are mainly for migrations or manual restoration.
- Creating Partial Backups
Partial backups allow you to download specific parts of your account.
Home Directory Backup
This includes your website files, configuration files, and email data.
- Under Partial Backups, click Download Home Directory.
- Save the file to your computer.
Database Backups
- Under Download a MySQL Database Backup, click the database you want to download.
- Save the .sql.gz file.
Email Forwarders and Filters
You can download these individually using the links provided.
Partial backups are ideal for quick restores or before making changes to your site.
- Restoring Backups
You can restore partial backups directly through cPanel.
Restoring Home Directory Files
- In the Restore a Home Directory Backup section, click Choose File.
- Select your backup file.
- Click Upload.
Restoring a Database
- In the Restore a MySQL Database section, click Choose File.
- Select the .sql.gz file.
- Click Upload.
Restoring Email Forwarders or Filters
Upload the corresponding backup file in the appropriate section.
Important: Restoring a database will overwrite existing data, so make sure you have the correct backup.
- Best Practices for Backups
- Download backups regularly to your computer or cloud storage.
- Keep multiple versions in case one becomes corrupted.
- Back up before major changes, such as updates, migrations, or plugin installations.
- Avoid storing too many backups on your hosting account, as they can use up disk space quickly.
- Troubleshooting Common Backup Issues
Backup Fails to Generate
- Your account may be low on disk space.
- Delete old backups or unused files and try again.
Cannot Restore Database
- The file may be too large for the upload limit.
- Try importing through phpMyAdmin instead.
Backup File Missing
- Check your home directory using File Manager.
- Ensure the backup completed successfully.
Slow Backup Generation
- Large sites may take several minutes.
- Avoid navigating away from the page until the process starts.