Knowledgebase

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 typeWhat it containsWho can restore it
Full account backupEverything: files, databases, email accounts and messages, DNS and settingsServer admin (WHM). Ask EgWeb support.
Home directory backupAll files in your account, including websites and mail foldersYou, from cPanel
MySQL database backupOne database as a .sql.gz fileYou, from cPanel
Email forwarders and filtersForwarder and filter rules (not messages)You, from cPanel
Easier option: if your account has JetBackup, you can restore files, databases and emails from our automatic backups with a few clicks, without uploading anything. See How to use JetBackup to restore files, databases or emails.

Restore a home directory backup (files)

  1. Log in to cPanel (see How to log in to cPanel).
  2. Open Backup in the Files section.
  3. Under Restore a Home Directory Backup, click Choose File and select your .tar.gz file.
  4. 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

  1. 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.
  2. In Backup, under Restore a MySQL Database backup, choose the .sql.gz file and click Upload.
  3. 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.

Need help? Open a support ticket or message us on WhatsApp +20 127 113 3655.

  • cpanel backup, restore backup, partial backup, mysql restore, home directory, email filters

Was this answer helpful?

0 Users Found This Useful