How to restore a full or partial backup in cPanel (files, databases, email)
This article explains how to restore a backup in cPanel, whether it is a full account backup or a partial backup of your files, databases or email settings. You will learn what each backup type contains, which ones you can restore yourself, and when you need our support team.
Understand the backup types
| Backup type | What it contains | Who can restore it |
|---|---|---|
| Full account backup | Everything: files, databases, email accounts and messages, DNS and settings | Server admin (WHM). Ask EgWeb support. |
| Home directory backup | All files in your account, including websites and mail folders | You, from cPanel |
| MySQL database backup | One database as a .sql.gz file | You, from cPanel |
| Email forwarders and filters | Forwarder and filter rules (not messages) | You, from cPanel |
Restore a home directory backup (files)
- Log in to cPanel (see How to log in to cPanel).
- Open Backup in the Files section.
- Under Restore a Home Directory Backup, click Choose File and select your
.tar.gzfile. - Click Upload and wait. Do not close the page until cPanel shows that the restore finished.
Restoring a home directory backup overwrites files that have the same name. Files that exist now but are not in the backup stay as they are.
Restore a MySQL database
- Make sure the database already exists with the same name. If not, create it first with the same name and assign a user; see How to Create a MySQL Database and User in cPanel.
- In Backup, under Restore a MySQL Database backup, choose the
.sql.gzfile and click Upload. - Check that your website configuration (for example
wp-config.php) uses the right database name, user and password.
For a plain .sql file you can also use phpMyAdmin: select the database, open the Import tab, choose the file and click Import. Very large files may hit the upload size limit; in that case ask support to import them for you.
Restore email forwarders and filters
In Backup, use Restore Email Forwarders or Restore Email Filters and upload the matching file. Note that these only bring back the rules. The email messages themselves are stored in the mail folder of your home directory, so they come back with a home directory backup or a full backup.
Restore a full account backup
cPanel users cannot restore a full backup from inside cPanel. Upload the file to your account (or share a download link) and open a support ticket asking us to restore it. Tell us whether we should overwrite the current account.
Tips
- Before any restore, download a fresh backup of the current state. If something goes wrong, you can go back.
- Restore the database and the files from the same date, so they match.
- After restoring a WordPress site, clear the cache (for example LiteSpeed Cache) and test the site in a private window.
Common problems
- Upload stops or times out: the file is too big for the browser upload. Upload it by FTP and ask support to restore it.
- "Disk quota exceeded": the backup file plus the restored data need free space. Delete old backups or upgrade your plan.
- Site shows a database error after the restore: the database user is not assigned to the database or the password changed. Fix it in MySQL Databases.
Frequently asked questions
Can I restore only one file from a backup?
Yes. Extract the backup on your computer and upload the one file with File Manager, or use JetBackup to restore a single file directly.
Will restoring a backup delete my new emails?
A home directory restore can overwrite mail files with the same names. Download any important new messages first, or ask us before restoring.
Where can I learn how to take backups?
See How to back up and restore your website.