This article will provide instructions on creating automatic backups on your server. Some people might ask “why should I create backups?!’ To put it simply anything can happen. Accidental deletion of content, server trouble, corrupted files, all of which can be devastating without backups in place.
To begin you will first need to log into WHM. After logging in you will see a screen similar to the one below. Click on the ‘Backup’ icon to get started with configuring your backups.
Once you have clicked the ‘Backup’ icon you will see a screen like the one below requesting information on your backup configuration. Let’s go through each setting to make sure you are choosing the right one for you, and your server. The first step is making sure that you have set the backup status to ‘Enable’. You will then choose the backup type.
For this example we are selecting ‘compressed’ and ‘Backup Daily’. This will allow us to select what day(s) of the week we would like the backup to occur and how many we would like to keep. Backup retention works on rotation base. This means that if we are only retaining 3 daily backups but we have 4, the oldest backup will be deleted from the server.
Next we see the options for ‘Backup Weekly’, and ‘Backup Monthly’. Backup weekly allows you to select 1 day out of the week to perform the backup, as well as how many backups you would like to retain. Backup monthly allows you to select either the 1st or 15th of the month to create a backup and also asks the number of backups to be retained.
The next section of the Backup Configuration screen is labeled ‘Files’. This portion of the configuration allows you to specify exactly what it is you want to have backed up. It is recommended to leave the defaulted options under the ‘Files’ section in most cases. If you would like to only backup specific cPanel accounts you can choose to do so by clicking ‘Select Users’. Otherwise the default options will backup all active cPanel accounts that are on your server.
You will then have the option to ‘Backup System Files’. This option backs up the configuration of the server settings such as php, apache, and other system settings. It is recommended to select this option so that you are able to have these settings in case you need to do a server restoration.
For the ‘Databases’ options it is recommended to choose ‘Per Account Only’ as it will allow you to use the restore feature in WHM when restoring an account backup.
You can also configure the location of where your backup goes. Either you can keep it there locally, which will be kept at /backup or you have options to place it remotely in another location as seen below:
The Legacy Backup configuration allows you to set the default configuration for the main backup utility with in WHM. This makes any configurations done the first time stay when enabling and disabling the utility.
Thank you for reading and hope this information was useful to understanding and setting up automated backups with in WHM. If you would like to read more, you can view further documentation at cPanel here.