India English
Kenya English
United Kingdom English
South Africa English
Nigeria English
United States English
United States Español
Indonesia English
Bangladesh English
Egypt العربية
Tanzania English
Ethiopia English
Uganda English
Congo - Kinshasa English
Ghana English
Côte d’Ivoire English
Zambia English
Cameroon English
Rwanda English
Germany Deutsch
France Français
Spain Català
Spain Español
Italy Italiano
Russia Русский
Japan English
Brazil Português
Brazil Português
Mexico Español
Philippines English
Pakistan English
Türkiye Türkçe
Vietnam English
Thailand English
South Korea English
Australia English
China 中文
Canada English
Canada Français
Somalia English
Netherlands Nederlands

How to Restore a cPanel Backup

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.

restore a cpanel backup

ii) Click Restore.

restore a cpanel backup

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

restore a cpanel backup

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

restore a cpanel backup

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 typeWhat it coversWatch out for
Home DirectoryFiles you own (including public_html) and files you can access, plus email for your account’s domainsMailbox contents are part of the home directory, so a home directory restore also rolls back email stored there
MySQL DatabasesOne database per backup fileRestoring files does not roll back your database, and restoring a database does not roll back your files
Email ForwardersForwarders for one domainRules only, not mailbox contents
Email FiltersAccount-level filters from Global Email FiltersPer-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.

restore a cpanel backup

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

ProblemLikely causeSolution
Backup file too large to uploadBrowser uploads are bounded by server limitsUpload 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 errorWeb-based imports run inside one PHP request bounded by upload_max_filesize, post_max_size, and max_execution_timeImport 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 memoryThe same PHP process is also limited by memory_limitUse the command-line import, or ask the server administrator to raise the limit
“MySQL server has gone away” or “packet too large” partway throughA single statement exceeded max_allowed_packetRe-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 errorThe file does not match the restore type selectedMatch 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 restoreDatabase user missing or lacking privilegesIn MySQL® Databases, recreate the user, assign it to the database, and grant privileges
Full backup upload fails in cPanelcPanel cannot restore full backupsUse WHM (Method 2) or ask your host
WHM cannot find an uploaded backup in Backup RestorationThat tool lists only backups the server’s backup system createdPut the file in an accepted directory with an accepted name, then use Transfer or Restore a cPanel Account
Restore fails or stallsNot enough free disk space or account near quotaFree 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?

Which restore method is safest?

Will a restore delete my current data?

How long does a restore take?

Can I restore only email, or only one database?

Can I restore to a different domain or server?

Author

Leave a comment

Your email address will not be published. Required fields are marked *