Backing up your site is a necessary part of normal account maintenance. Please read our article entitled Do you Run Backups of your Servers? for more information regarding backups.
Before making any major changes to your site, it is recommended that you backup your website files and any databases used by your website. You can either create backups via cPanel or download files via FTP and download database backups separately (as described below). If your account is over 3GB in size, please see our article on using FTP to backup you site files.
In cPanel, using the Backup Wizard, there are two different ways you can generate backups of your account. You can generate and download one backup file of your entire account, which includes all of your files and databases or you can create and download backups of these items individually.
If you have software such as WordPress, your database is updated most of the time while your files generally are not changed. This means that you can download backups of your database more often than downloading the full website backup, thus saving yourself time and disk space when storing the backups.
We'll start off below by showing you how to generate the full backup, and then we'll explain how to download individual backups of your files and your databases.
Creating a Full Backup of your cPanel Account:
A full backup will create a zip file of your account that includes all of your files, databases, email forwarders, and any emails stored on the server. Once the full backup is created in cPanel, you can then download the backup to your computer.
Generating the one backup file may take longer, but it ensures you have a copy of everything in your account. While this may sound great, if your website is fairly large, downloading these backups on a regular basis takes a lot of time and can take up a lot of disk space.
First, log into your cPanel and click on the Backup Wizard under the Files sub-header:
Next, click on Backup:
And then Full Backup:
Enter your email address if you want to be notified when the backup is complete
(it can take up to 30 minutes or more, depending on the size of your website). Then click on Generate Backup:
The cPanel will begin to backup your website, which places a zip of your files and databases in your account. Once it is complete, you will receive an email with the link to download your backup. It is also available in your cPanel for download in the "Full Backup" section:
Creating a Partial Backup of your Website:
If you just want to backup your database
, the files in your home folder
, or your email forwarders & filters
, you can do them individually.
- First click on the Backup Wizard under the Files sub-header and select Backup as shown above.
- On the next screen, instead of doing a Full Backup, on the right side you can choose to backup just your Home Directory, MySQL Databases, or Email Forwarders & Filters:
First, we will click on the Home Directory option. This will backup all files in your home folder (which included your public_html directory):
Backup your Home directory:Click on Home Directory," and a box will appear that will allow you to save the zipped file anywhere on your computer.
Backup a MySQL Database:
Select the MySQL Databases option and a list of databases on your account will appear. Select the database that you want to save and a box will appear so you can save the database to your computer.
Congratulations, now you know how to create a backup of your website using cPanel!