Backing up your website files and databases is one of the most important tasks you should undertake. Your web site can get compromised by malwares, a server might go down, hackers can take down your database and a myriad of other uncertainties can happen. When any of them happens and finds you not prepared with a backup, you’ll certainly have a hard time redesigning your website from scratch.
Setting up your website afresh is time consuming. If your entire website’s files went missing, your site will fall off from search engine search results. You may lose visitors and your websites traffic will drop substantially.
cPanel makes it easier for you to backup and/restore your entire site, or do a partial backup/restoration.
In this article we’ll see how to backup and restore a website in cPanel. We will talk about taking a Full Website Backup, Partial Website Backup, Email backup & databases backup. Partial backup allows you to backup and restore home directory, databases, email forwarders and email filters.
You can backup and restore a website in cPanel entirely or partially.
1. Backup the entire website.
- Log into cPanel.
- In the search box in your cPanel, type “Backup” – without the quotes of course.
- In the Files section, click on the Backup icon.
- From the page that appears, under Full Backup section, click on Generate/ Download a Full Website Backup.
- On the next page, select the Home Directory option from the Backup Destination drop-down menu.
- Email Address textbox allows you to specify the email address you wish to use to receive a notification on completion.
- “Do not send email notification of backup completion.” Lets you specify whether you want to receive a notification on backup completion.
- Click on Generate Backup.
2. Backup and restore home directory Only.
Backup home directory
- Once you have logged into your cPanel, locate and click on Backup as described above.
- Navigate to Partial Backups section.
- Click on Home Directory button.
- Your browser should prompt that a new file file will be downloaded.
- Click Yes/Ok.
- Wait for the download to complete.
Restore home directory
- Under Partial Backups section, locate “Restore a Home Directory Backup”
- Click on Browse button to select a backup file from your computer.
- Click on Upload and wait for the upload to finish.
Backup And Restore MySQL Databases in cPanel.
How to backup MySql Databases in cPanel
- Under Partial Backups section, locate “Download a Mysql Database Backup.”
- All your website’s databases will be listed.
- Click on the database you wish to backup and your browser should launch a download.
You can also use phpMyAdmin to backup MySql databases in cPanel. You can read on How to export a MySql database using phpMyAdmin.
How to restore MySql Databases in cPanel
- Under Partial Backups section, locate and click on “Restore a MySQL Database Backup.”
- Click on Browse button to select a backed up database from your computer.
- Click on upload button and wait for the restoration to complete.
How to Backup Email Forwarders.
- Under Partial Backups section, locate and click on “Download to Backup Email Forwarders.”
- Your domain and all its subdomains will be should be listed here.
- Click on the domain or subdomain you want to do a backup for.
- Your browser should automatically start a download.
How to restore Email Forwarders.
- Under Partial Backups section, locate “Restore Email Forwarders.”
- Click on Browse button to select a backed up file from your computer
- Click on Upload button
- Wait until the restoration finishes.
Using this guides, you can now backup and restore a website in cPanel. We wish you a happy hosting experience.
PS: If you haven’t hosted with ShujaaHost, you’re missing out on a lot. Order our hosting here >> https://shujaahost.co.ke