A cPanel backup lets you recover website files, databases, and email settings after accidental deletion, a failed update, a site error, or a migration. The right method depends on what you need back and what type of backup you have.
- Partial backups (home directory, a single database, email forwarders, email filters) can be restored by you inside cPanel.
- Individual files and folders can be restored from server-side backups, if your host has enabled that feature.
- A full account backup cannot be restored inside cPanel. It requires WHM (root or reseller privileges) or help from your hosting provider.
Before You Restore
- Identify the backup type. A full backup, a home directory archive, and a database file are not interchangeable. cPanel rejects a file that does not match the restore type you chose.
- Check the file is intact. With SSH access, tar -tzf filename.tar.gz lists an archive’s contents without extracting it; a corrupted archive throws an error immediately.
- Save what you have now. Restores overwrite. Download a current backup of whatever you are about to replace.
- Restore the smallest thing that fixes the problem. A broken index.php calls for a file restore, not a full account restore.
Method 1: Restore a Partial Backup Using cPanel
Use this method to restore specific parts of an account without touching the rest.
Restore with the Backup Wizard
i) Log in to cPanel and open Files → Backup Wizard.

ii) Click Restore.

iii) Under Select Restore Type, choose Home Directory, MySQL Databases, or Email Forwarders & Filters.

iv) Click Choose File and select the matching backup file from your computer.

v) Click Upload. The upload starts the restoration.
Files → Backup offers the same restore options plus a download section for each partial backup type. Per cPanel’s documentation, partial backups download as .gz files.
What each partial backup contains
| Restore type | What it covers | Watch out for |
| Home Directory | Files you own (including public_html) and files you can access, plus email for your account’s domains | Mailbox contents are part of the home directory, so a home directory restore also rolls back email stored there |
| MySQL Databases | One database per backup file | Restoring files does not roll back your database, and restoring a database does not roll back your files |
| Email Forwarders | Forwarders for one domain | Rules only, not mailbox contents |
| Email Filters | Account-level filters from Global Email Filters | Per-mailbox filters created under Email → Email Filters are not included |
Restore individual files or folders
If your host has enabled it, Files → File and Directory Restoration restores items from server-side backups, with no upload needed.
i) Open File and Directory Restoration.

ii) Either enter a path (for example, public_html/index.php) or browse to the file or folder.
iii) Click Show Backups to list the available backups for that item.
iv) Choose a backup date and click Restore.
v) Confirm when prompted.
Limits:
- Your host must have enabled account backups in WHM.
- It restores from local backup files only. Remote backups must first be copied to the server.
- It cannot restore the .cpanel and mail directories. Those require a full account restoration.
- It restores deleted files and overwrites existing files.
- It does not roll back databases.
If you do not see this interface, your host may use its own backup tool (JetBackup, for example) or have it disabled. Ask support.
After a partial restore
- Check the files in File Manager and load the pages that were broken.
- After a database restore, confirm the application connects. If not, open MySQL® Databases and verify the database user is assigned to the database with the needed privileges.
- After restoring email settings, send and receive a test message.
Note: cPanel cannot restore a full account backup. Per its documentation, that function exists only in WHM; otherwise, contact your host.
To recover only website files from a full backup, cPanel’s documentation describes a manual workaround: uncompress the .tar.gz, take the public_html folder inside the homedir directory, and upload its contents to your account’s public_html with File Manager. This does not recover databases or email.
Method 2: Restore a Full Account Using WHM
A full restore recovers an entire account: files, databases, email, and settings. You need WHM administrator (root) access, or your hosting provider must do it for you. Some hosts do not give resellers this ability and handle full restores through support tickets.
Option A: Restore From Server Backups
Use this when the server has been creating backups of your account.
Prerequisite: account backups must be enabled in WHM’s Backup Configuration. The interface restores from local backups or from a remote FTP destination listed under Additional Destinations there.
i) Log in to WHM as root.
ii) Go to Backup → Backup Restoration.
iii) Choose a tab:
- Restore by Account: pick the account, then a date from the calendar. Dates with a backup available are shown in blue.
- Restore by Date: pick a date, then the accounts to restore from it.
iv) Choose any options you need. The list includes Restore from (the backup source) and Give Dedicated IP Address.
v) Click Add Account to Queue. The account appears in the Restoration Queue with a Pending status.
vi) Click Restore to start processing the queue.
vii) Monitor the queue. When the status updates, click View Log to read the restoration log and check for errors or warnings.
viii) An account cannot be removed from the queue mid-restore.
This interface does not restore cpmove files; use Option B for those.
Option B: Restore From a Backup File
Use this when you have a full backup or cpmove archive, such as one downloaded earlier or created on another server.
i) Name the file correctly. WHM accepts only these formats, so do not rename the archive:
- cpmove-{USER}, cpmove-{USER}.tar, cpmove-{USER}.tar.gz
- {USER}.tar, {USER}.tar.gz
- backup-{MM.DD.YYYY}_{HH-MM-SS}_{USER}.tar or .tar.gz (also accepted without the underscores)
ii) Place the file in a supported directory. The accepted directories are /home, /home2, /home3, /root, /usr, /usr/home, and /web. Upload with an SFTP client.
iii) Check disk space. cPanel advises having at least double the archive’s size free, because the system needs the space to extract it.
iv) In WHM, go to Transfers → Transfer or Restore a cPanel Account.
v) Choose Restore from a local cpmove file, then select your archive. Alternatively, choose Upload a file to restore to upload it from your computer.
vi) Set the options (details below) and click Restore. The Account Restore screen shows progress.
Options that Count:
- Overwrite if the cPanel user already exists: optional. Leave it off unless you intend to replace an existing account with the same username.
- A records: Replace All Matching A Records (the default) swaps the source server’s IP address for the destination server’s IP in the account’s DNS zone, including custom A records. cPanel-provided A Records changes only the basic ones cPanel created.
- Restricted Restore: on by default. cPanel labels it experimental and says it does not restore parked (aliased) or addon domains. If the restored account is incomplete, remove it and restore without this option.
Important points:
- Do not create the account beforehand. The restore creates it.
- For server-to-server moves with root access on both, cPanel recommends WHM’s Transfer Tool and calls this interface a last resort.
- Two-factor authentication settings are not carried over.
From the command line, as root: /usr/local/cpanel/scripts/restorepkg cpmove-username.tar.gz (pass the file’s full path, or an account username to restore from server backups).
After a full restore
- Read the restore log and resolve warnings.
- Test the site, a database-driven page, and email.
- If the account moved servers, confirm DNS points to the new IP.
Troubleshooting Common Restore Problems
| Problem | Likely cause | Solution |
| Backup file too large to upload | Browser uploads are bounded by server limits | Upload by SFTP/FTP or File Manager, extract a home directory archive and upload its contents, or ask your host |
| Database restore times out or returns a 500 error | Web-based imports run inside one PHP request bounded by upload_max_filesize, post_max_size, and max_execution_time | Import over SSH: mysql -u cpuser_dbuser -p cpuser_dbname < dump.sql (use the full prefixed database and user names shown in cPanel), or ask your host |
| Database restore runs out of memory | The same PHP process is also limited by memory_limit | Use the command-line import, or ask the server administrator to raise the limit |
| “MySQL server has gone away” or “packet too large” partway through | A single statement exceeded max_allowed_packet | Re-run with a larger client limit, e.g. mysql –max_allowed_packet=512M …, and ask your host to confirm the server limit |
| “Wrong file type” or invalid file error | The file does not match the restore type selected | Match the file to the option: database file to MySQL Databases, .tar.gz home archive to Home Directory, and so on |
| Application cannot connect after a database restore | Database user missing or lacking privileges | In MySQL® Databases, recreate the user, assign it to the database, and grant privileges |
| Full backup upload fails in cPanel | cPanel cannot restore full backups | Use WHM (Method 2) or ask your host |
| WHM cannot find an uploaded backup in Backup Restoration | That tool lists only backups the server’s backup system created | Put the file in an accepted directory with an accepted name, then use Transfer or Restore a cPanel Account |
| Restore fails or stalls | Not enough free disk space or account near quota | Free space first; WHM needs double the archive size free |
Restore Your Website With the Right Backup
Every restore starts with the same question: what exactly was lost? Restore a single file when only one file is broken, a database when your content is corrupted, and a full account through WHM when the whole account is gone. Before you restore, save a copy of your current data. Afterward, test your pages, database connection, and email.
If you would rather not manage restores alone, a hosting provider you can reach makes recovery faster. Check hosting plans and support at Truehost.
How to Restore a cPanel Backup FAQs
Can I restore a full backup myself in cPanel?
No. Full backups cannot be restored automatically in cPanel; that function exists only in WHM. Without WHM access, ask your host. You can manually recover just your public_html files by extracting the archive and uploading them with File Manager.
Which restore method is safest?
The narrowest one that solves your problem, after saving a fresh backup of the current state. A full account restore can replace files, databases, and email at once.
Will a restore delete my current data?
It can. File and Directory Restoration overwrites existing files, and WHM’s overwrite option replaces an existing account with the same username. Treat every restore as destructive and keep a copy of what you have now.
How long does a restore take?
It depends on archive size and server speed; no source gives a fixed figure. Small restores are usually quick, while large accounts take longer. WHM shows progress in the Restoration Queue or Account Restore screen, and the log shows whether it finished cleanly.
Can I restore only email, or only one database?
Yes. In Files → Backup, download a backup for one database, then restore it under MySQL Databases. Forwarders are backed up per domain and filters as the account’s global filters. Stored mail is not in those backups; recovering it means restoring the home directory or a full account backup.
Can I restore to a different domain or server?
To a different server, yes: restore a full backup or cpmove file through WHM, using the A record options to update DNS to the new IP. With root on both servers, cPanel recommends its Transfer Tool. The restore tools do not change a site’s domain name; after restoring under a different domain, update the application’s own settings.