Configure Backups In WHM
In this blog we are going to configure backups and backup schedule for your server. Face it! You need backups otherwise, so a server without backups could go at any moment today, tomorrow, next week , it happens, so plan for it. This seems like you are going to use our backup system and then a third party backup system.
Follow the below steps:
Step 1 – Let’s go ahead and login to WHM. Here we are in the WHM home interface.
Step 2 – Let’s scroll down to the “backups” section. You will see references to the backup system and a legacy backup system. What’s the difference, Well! it this is your first time up a server use the backup system do not use the legacy backups system.
If you are adding a new server to an existing infrastructure that uses the legacy backup system, I hope you are working on upgrading your scripts and infrastructure to use the new backup system. It is cool, you will like it ok! Si if you see legacy ignore it.
Step 3 – Click on “Backup Configuration”. A new interface will appear to enable backups.
Step 4 – Click the “Enable” option..
Step 5 – The rest of the interface is now accessible. Then select the type of Backup.
Compressed: uses less space, but takes more time to run.
Uncompressed: runs faster, but it takes more space.
Incremental: only stores the files that are changed since the last 4 backups.
The system performs on the backup weekly and backup monthly schedules. The destination and restore timeouts tell the system when they give up on a backup attempt or restoration attempt.
Step 6 – Scroll down to the ‘scheduling and retention section’. Here you can select, whether you want to run backups on a daily basis, weekly basis and monthly basis.
You can also select the days on which the daily backups run. The day of the week that the weekly backups run and whether a monthly backup runs on the first or the 15th of the month or above whatever you like.
What’s the good schedule? Well! Consider the traffic patterns on your site are a day of the week on the business cycle begins again like on a weekend. Do you really need to run a backup on every night? Finally you should tell the server how many daily, weekly and monthly backups to attend.
Some factors that you should consider at the time of retention settings are how much space do you have to store the backups and how much do you need for backup. Speaking of which let’s select what you want to backup? If you are going to resellers placed on the server for customers you probably want a backup accounts.
Step 7 – Select that check box;
Step 8 – Skip ‘select users’ for now. We will get to that in a bit.
The section buttons lets you decide whether you want to backup suspended accounts, access logs, and bandwidth data and to backup almost local DNS entries.
Suspended accounts won’t change as much while they are suspended right? So disable “Use Local DNS”.
Step 9 – Access logs and bandwidth data are pretty important for traffic and history so enable these. The ‘Use Local DNS’ option would backup local DNS information only. If you use a DNS cluster you should enable this option. Now if you don’t know what a DNS cluster is leave this option disabled.
Step 10 – Backup system files – I suggest you select that so that everything goes up and smooth. You can rebuild the system easily.
Step 11- Databases – This determines whether the SQL databases backup each account’s tables with the account as an entire block or both. For account it is important because it allows you to restore individual account quickly, even though 4 backups can stitch together the SQL database contents from individual accounts a whole MySQL directory can restore faster. Storing both forms takes more space but it handles both situations well.
Step 12- Backup Directory- By default cPanel and WHM stores backups to the backup directory. You have a dedicated hard drive for backups you can enter it here.
Step 13 – If you plan on using an additional destination for your backups but don’t want to store them locally deselect the ‘Retain backups in the default backup directory setting’.
Step 14 – If you have an external USB hard drive that you use, mount the backup drive as needed. Speaking of which let’s look at the additional destinations directory because if your data center is fired or gets robbed or gets attacked by Godzilla, outside backups allow you to restore your server elsewhere.
Step 15 – It supports Amazon s3 clouds storage and SFTP, webDAV, and yes we support FTP. But FTP is not a secure connection and it is not fit for large files in sizes, so I suggest that you use SFTP instead of FTP.
Step 16 – After you select the additional destination the interface would present a list of text boxes for you to fill out. Your system administrator or backup’s provider should be able to provide you with the right settings or instructions on how to get them.
Step 17- After you fill in all the information you can save it or save it without destination. This will login to the remote location with credentials you provide and send a text file. When you are done configuring the backups click ‘save configuration ‘. A confirmation message will appear.
Step 18 – When you do eventually create users you want to go to the backup user selection interface. This will show you which accounts are configured to use which backups. It’s good to confirm that all user accounts are scheduled for backups and once again you use the regular backups and not the legacy backups.