So, you already have a website up and running. Maybe throughout the years, your site has gathered a decent amount of fans. Nevertheless, you live in constant fear of something going wrong and then all of a sudden everything is gone. Yeah, that’s right years of hard work turned into nothing. This is a common feeling shared by many IT Admins, whether you are still a newcomer or a veteran in managing databases and websites, data loss is one of the top issues of the IT world. Unfortunately, this is large because many people take for granted the comforts that tech brings to them.
There is a common saying between IT Administrators and Cybersecurity experts “Never trust, always verify”. Unfortunately, people who are not so tech-savvy tend to think that technology will always have their back, heck, even experts sometimes take for granted the comforts of modern technology only to be backstabbed when they suffer a data loss or some kind of critical error on their systems. It’s only after suffering a major loss due to hardware or software failure that most people learn their lesson and start making backups. As you can see, the old saying ” Don’t put all your eggs in one basket” is especially true when dealing with the unpredictable nature of computers.
What Is A Backup And Why It Matters So Much?
Fortunately, the digital world still has some advantages over the real world. What if I told that in this universe powered by processors, numbers, and pixels its possible to go back in time and even summon a house that was burned to the ground a few minutes ago? Yes, that’s right! Does the word backup ring a bell with you?
In the world of technology, backup means making an extra copy of files or an entire system and storing it somewhere safe. So, in case you lose all your data from the source you still have an extra copy to restore your system or access the data you used to have. After all, its better be safe than sorry.
Sometimes it’s possible to recover data from hardware failure, damage, software corruption and so on. Nevertheless, to trust that data recovery will always be a possibility is like trusting in blind luck. In other words, don’t wait for the worst to happen, act now! Start making a regular habit of constantly backing up your files.
Backing Up Databases And Websites With Cpanel’s Backup Wizard
First off, like many of my previous tutorials, you will need to make sure you have a hosting plan that uses Cpanel to manage your server. Otherwise, most of the information provided in here won’t help you much, although you might be able to apply it under different hosting plans, circumstances, and technologies. However, keep in mind that this tutorial is for Cpanel users. In it, I will be teaching you how to back up databases and directories by using a Backup Wizard an application that usually comes with Cpanel.
# Step 1: Getting Familiar With Backup Wizard And Knowing Where To Find It
As shown in the pictures above, your backup wizard can usually be located in Cpanel’s Files category. When you do find it just click on it. Afterward, you will be met with an interface similar to the one below.
# Step 2: Doing a Backup Of Your Home Directory
This is the Backup Wizard main menu. For now, we will only be using Backup features. So, click on the backup button as shown below.
After clicking on it you will be met with a menu like the one below.
In here, you will have the option to either do a Full Backup or a Partial Backup. In this tutorial, we will only be doing Partial Backups. First, we will be doing a backup of our Home Directory, in order to do so, click on the Home Directory option located under the Select Partial Backup text, as shown below.
After clicking on the Home Directory you will be met with the third final step screen of Backup Wizard, as shown below.
As soon as you click on it you will start downloading a backup copy of your entire home directory and voila! Congratulations! You did a complete backup of your Home Directory. But what about my databases? How do I backup up them? Well, if you keep reading this post I will show you how.
# Step 2.5: Doing A Backup Of Your Databases
First, you will go back to the main menu of Backup Wizard and click on backup again. As you can see many of the steps we will be taking are similar to the ones we did for the Home Directory. The differences are minimal. On the second screen, we will be doing a partial backup again as shown below.
As shown on the photo select MySQL Database. Afterward, you will be taken into a screen similar to the one below listing all MySQL Databases currently hosted on your server.
Now, all you have to do is select one of the databases that you which to backup. Then, as soon as you click on one your browser will start downloading it to your computer.
# Step 3: Restoring A Home Directory Backup
Again, we find ourselves on the same old Backup Wizard main menu, where we did many backups during our tutorial. However, the only difference now is that we will be selecting the restore option this time.
Now, as soon as you click on restore you will be taken into another menu asking what type of file will be restored similarly to the one below.
For now, since we are doing a home directory backup we will be selecting the Home Directory option as shown below.
As soon as you click on the home directory button you will be taken into a screen similar to the one below, asking you to upload a backup file of your Home Directory compressed in an archive file of the GZ extension type.
Now, all you will have to do is to select the file from your computer by clicking on Select File and then click on the upload button and voila! You did the backup. Depending on your internet speed and the service you are using to host your server you may have to wait from a few seconds to a few minutes while it restores your previous home directory. But as soon as it’s done doing that your Home Directory will be restored to its previous state.
# Step 3.0: Restoring A MySQL Database Backup
To do a Wizard backup you will have to do just like you did when we were restoring a Home Directory File, but instead of clicking on the Home Directory button we will be clicking on the MySQL Databases one as shown below.
Again, you will be taken into a menu asking you to select the file from your computer and then click on the upload button to send it to the server as shown below.
As said before, depending on your internet speed and the service you are using to host your server you may have to wait from a few seconds to a few minutes while it restores the database. But as soon as it’s done doing that your database will be restored to a previous state.