To restore a backup in cPanel, go to Backups (or the Backup Wizard), choose whether you want to restore files, a database, or email accounts, upload the corresponding backup file, and confirm. The process takes between one and five minutes depending on backup size.
Below you'll find the complete walkthrough, including how to restore from a full backup and how to recover only the database or files when you don't want to overwrite the entire site.
What Does a cPanel Backup Contain?
cPanel generates two types of backups:
- Full backup: packages the entire home directory (files, databases, email accounts, aliases, filters, etc.) into a
.tar.gzfile. The most comprehensive option but also the heaviest. - Partial backups: home directory files, individual MySQL databases, or email accounts separately. Lighter and more practical when you only need to recover something specific.
Before restoring, identify which type you have and what you need to recover. Restoring a full backup onto a live site overwrites everything; restoring only the database leaves your files untouched.
Step 1 — Access the Backups Section in cPanel
- Log in to cPanel (
yourdomain.com:2083or from your hosting client area). - Under the Files section, click Backups or Backup Wizard.
The Wizard is the most user-friendly option — it guides you through download and restore in separate screens. The standard Backups section is more complete and also handles full-backup restoration requests.
Step 2 — Restore Home Directory Files
Use this method when you need to recover site files (HTML, PHP, images, WordPress plugins, themes) that were deleted or corrupted.
- In the Restore section of the wizard, choose Home Directory.
- Click Browse and select the
.tar.gzfile from your files backup. - Click Upload. cPanel will decompress the archive and restore the files to their original location.
Important: restoring files overwrites any existing file with the same name. If you only need to recover a single file, decompress the backup locally and upload only that file via cPanel's File Manager or FTP.
Step 3 — Restore a MySQL Database
This is the most critical step, especially on WordPress, Joomla, or PrestaShop sites where all content lives in the database.
- Under Backups → Restore a MySQL Database, click Browse.
- Select the
.sql.gzor.sqlfile from your database backup. - Click Upload. cPanel will import the dump into the database of the same name.
What If the Database Doesn't Exist Yet?
If you're restoring to a clean account or the database was deleted, you must create it first:
- Go to MySQL Databases in cPanel.
- Create the database using the same name it had before.
- Create (or reassign) the MySQL user with the appropriate privileges.
- Then return to Backups and upload the SQL file.
| Scenario | Does the DB Exist? | Action Before Restoring |
|---|---|---|
| Live site, corrupted DB | Yes | None — cPanel imports directly |
| Migrating to a new account | No | Create DB + user in "MySQL Databases" |
| DB accidentally deleted | No | Create DB + user, then restore |
| Restore only specific tables | Yes/No | Import via phpMyAdmin → Import |
Step 4 — Restore Email Accounts
If you lost emails or an email account was deleted, cPanel can recover it from a backup:
- Go to Backups → Restore an Email Forwarder or Restore an Email Filter.
- To recover the actual messages in an account, you need a full backup; extracting the
mail/folder and uploading it via FTP works on hosts with direct access.
Many hosting providers also retain daily and weekly server-level backups. Contact support to request a restore from one of those snapshots if you don't have your own backup file. For guidance on setting up automatic backups so you're never dependent on support, visit our website security and backups resource hub.
Restoring from a Full Backup
The full backup process is different: cPanel does not restore full backups automatically through the graphical interface. You need to contact your hosting support and ask them to restore it at the server level, or do it yourself via SSH if you have access.
That said, managed hosting providers typically retain their own automatic daily copies. If your plan includes this feature, ask support about a "point-in-time restore" — it's far faster than uploading your own archive.
Looking for hosting with automatic daily backups and one-click restores? The team at elenlace.com can recommend the right plan based on your site's needs.
Common Mistakes When Restoring cPanel Backups
- File is too large to upload via the browser: upload the file via FTP to your
/home/username/directory, then use the File Manager to decompress it, or ask support to handle the restore. - Database name doesn't match the backup: verify that the DB name in
wp-config.php(or your CMS config file) matches the name you created in cPanel's MySQL Databases section. - White screen after restoring: this usually means the database wasn't restored correctly or the credentials in the config file don't match. Check PHP error logs under Metrics → Errors.
- Restored an old backup and lost recent changes: always take a backup of the current state before restoring an older one.
Key Takeaways
- cPanel lets you restore files, databases, and email accounts independently from the Backups section.
- Before restoring, identify exactly what needs to be recovered so you don't overwrite things that are working.
- Full backups cannot be restored through the GUI — they require support intervention or SSH access.
- Always back up the current state before restoring an older snapshot.
- A hosting plan with automatic daily backups is your most reliable safety net.
Need help recovering your site or setting up a solid backup strategy? Reach out to the team at elenlace.com — they'll walk you through every step and make sure your data is protected going forward.
FAQ
How long does it take to restore a backup in cPanel?
It depends on size. A 50 MB database backup takes between 30 seconds and 2 minutes. A 500 MB file backup can take 5 to 15 minutes. Full backups processed at the server level may take longer depending on the provider.
Will restoring the backup delete my current data?
For files, any existing file with the same name will be overwritten. For databases, the import replaces the tables included in the dump. This is why it's essential to back up the current state before restoring an older one.
What if I don't have my own backup file?
Contact your hosting provider's support team. Most providers retain automatic server-level backups for 7 to 30 days. You can also check if you have copies in external services like Google Drive or Dropbox if you were using a WordPress backup plugin.
Can I restore only specific files instead of the whole directory?
Yes. Download the backup archive to your computer, decompress it locally, and upload only the files you need using cPanel's File Manager or an FTP client. This avoids overwriting files that are currently working correctly.
Further reading
Other providers and guides worth comparing: