It is always a good idea to have a backup of your website and emails. If the worst happens, you will have something to revert to.


Note: We back up all our servers every night, and we keep a copy of backups for seven days. If your website suddenly breaks or if you accidentally delete your emails, we can usually restore everything.

It is still a good idea to make the occasional backup of your account. If, for example, your website has been compromised and this only comes to light after more than a week it wouldn’t be possible to simply “roll back” your website to a known good state. If you got an old backup then you can always use that backup to undo the damage.


The Backup Wizard

cPanel has two options for making and restoring backups: there is a Backup option as well as a Backup Wizard. The only difference between the two is the interface. The Backup option presents you with lots of options on a single screen, while the Backup Wizard goes through the process one step at the time. If you are new to making backups via cPanel it will be easier to use the latter option.

The Backup Wizard has three steps. First, you need to choose whether you want to create or restore a backup. Let’s make a backup first:

Making a backup via cPanel's Backup Wizard
Step 1: selecting the Back Up option.

By default the Wizard will make a backup of all the files in your home directory (in our case the entire /home/example directory); any existing databases as well as any email forwarders and filters you have created. If you want you can make a backup of just one of these items. For our example we will create a backup of the home directory only.

Selecting what we want to back up
Step 2: selecting what we want to back up.

The final step is as easy as it gets: we just need to confirm that we want to download the backup. After clicking on the confirmation button (here the Home Directory button) your browser will download a backup file to your local computer. The file will be a tar.gz file, which is a compressed archive file (similar to a .zip file).

The final step: confirming that we want to download the backup
Step 3: Confirming our choices.


Note: It is important to keep your backup somewhere safe. The backup file is likely to contain login details and other personal data. You probably want to encrypt the file after you have downloaded it.


Restoring a backup

Restoring a backup is just as easy. At step 1 you need to select that you want to restore a backup; at step 2 you choose what you want to restore and at step 3 you select a backup file from your local machine and upload it.

Restoring a backup via the Wizard
Restoring a backup via the Wizard.

The backup file will be uploaded to the server, and a new browser tab or window will open to confirm the files that have been restored.

Restores overwrite files (but does not delete any)

It might be obvious, but it is worth pointing out that restoring a backup will overwrite files. Any changes you made since the backup was taken will be lost.

Restoring a backup doesn’t delete files. This can be problematic. If you are restoring a backup because malicious scripts have appeared on your site then those script won’t be removed. You could, however, delete all the files in the public_html directory before restoring the backup. Of course, make sure that there aren’t any important files on the server that are not in your backup.

Many websites store website content in a database. In that case you can often restore just the website files, so that you don’t loose any content. Bear in mind, though, that if a website has been infected the database may have been compromised as well. If you are dealing with a website that has been compromised, please always contact us.