So you have decided that making backups is important (it is!). Fortunately with cPanel, making backups is relatively easy and we will be happy to guide you in this process.
You will first need to log into the cPanel interface, which can be done by going to your domain that is hosted by BlackSun and adding "/cPanel" to the end of it. For example if my domain was called thebackuptutorial.com, I would want to go to thebackuptutorial.com/cpanel . If this does not redirect you properly to a login screen, you may need to contact your hosting provider to retrieve the direct link to the login page.
Once logged into cPanel, you will see many sections containing icons. For this tutorial, we are interested in the Files section. Within the Files section is an icon labeled the Backup Wizard (images seen here use the x3 theme of cPanel).
Select the Backup Wizard icon, and you will be brought to a screen with a choice of Backup-> or Restore->. Please note that in this section, only partial backups can be restored: I will address this later on. For now you will want to select the Backup-> option. This will move the tab to step 2: Full or Partial Backup. We recommend you make 3 backups, one full backup and two partial backups.
1) To make a Full backup, please select the Full Backup-> option from the screen above. Here it shows you what full backups have been previously made under the Available Backups To Download: area. It will also give you options for generating a new backup. Here you can choose where you would like the backup to be created under the Backup Destination drop down menu. Please see definitions about the options in the menu below.
- Home Directory: This is the root directory of your hosting at BlackSun, just outside of the webroot (public_html)
- Remote FTP Server: This will let you specify a different server to create the backup in. It will cause necessary fields to appear in order to process this, such as The remote server (address), username, password, port and what directory to put it in.
- Remote FTP Server (passive): This option will do the same as the Remote FTP Server option but use a passive connection
- SCP: Will make the backup and transfer it using Secure Copy, (SCP protocol) which is based on secure shell (SSH).
Using the home directory will suffice, you can then download the backup and move it where needed. You can also specify an email address that the system will send an email to once the backup is complete. After choosing a destination and an email address, hit the generate backup button. You do not need to remain on this screen while the backup is being generated, it will continue automatically until completed.
2) To make partial backups, you will want to go back into the Backup Wizard as above, select Backup-> but this time take a look at the right hand side of the options. Here we recommend making two backups, one for the home directory and one for the MySQL databases (or multiple for databases if you have more than one that is used). The email forwarders and filters backup is not related to site functionality and these can easily be recreated. If you have quite a number forwarders and filters, please feel free to make a backup of these as well.
- Home directory: For this one, simply select the Home Directory-> option and then select the download button. This will begin downloading the home directory through the internet browser to your computer (not to server).
- MySQL Databases: For this one, simply select the MySQL Databases-> option, this will bring you to a window that lists the current databases that are made. Select the database you would like to backup and it will begin downloading the file to your computer (not to server).
3) The reason we make one full backup along with the two partial backups, is because the partial backups can be restored automatically. The large backup is nice because the entire site is contained in the one file, as such it makes it a bit more difficult to restore. The partial backups contain specific information and formatting which is why they can be restored automatically.
That’s it for making backups. We encourage backups be created and made as a safety precaution, as it is safer to have multiple backups stored in separate locations.