How to Restore a Website Using a Full Account Backup in cPanel
When you want to recover website files, emails, or databases using a full cPanel backup. This article explains how to extract backup data, restore files, and import databases.
You may refer the following steps to restore a complete cpanel backup taken via cpanel >> backups >> take a full cpanel backup:
-
Extract the backup file contents on your local machine and locate the web directory (the directory where website files are present), mail directory (/homedir/user/mail/domain.com/ - directory under which you will see folders for every mail account for the addon domain), and mail configuration (/homedir/user/etc/domain.com/ - directory under which you will find the configuration files for the domain such as shadow and passwd).
-
Replace the contents of the following folders on the server from the backup file using FTP:
-
Upload the contents of the web directory of addon domain to the path /home/user/public_html via FTP.
-
Upload the contents of the mail directory of addon domain to the path /home/user/mail via FTP.
-
Upload the contents of the mail configuration directory of addon domain to the path /home/user/etc via FTP.
-
This will restore the website contents and mail accounts.
-
-
If you need to update the statistics, you need to replace the folder /home/user/tmp with the files from /tmp/domain.com/.
-
You can restore the databases from the cPanel using the following steps :
-
Login to the cPanel
-
Click on Backups
-
Restore a MySQL Database
-
Browse the database backup and click on Upload after selecting the backup file
-
Create the database user and link it to the database via CPanel >> MySQL Databases while using the same username/password as specified in your application configuration file.
-