How To Backup Your Website
Backups – it looks like they're not worth doing, until your hard drive or server crashes or you are hacked and you need to restore your data. In this article, I'll show you how it can be a painless process.
You need to backup your website online. Sure, you might have a copy of all the text content somewhere else but it will be very difficult and time consuming to re-upload it if the worst comes to the worst.
Also, let me just say now that you should never reliably on your hosting company to restore your data. Many hosting companies do not take backups of your data simply because it is not in your contract and they are not obliged to do so. Make your own backups and do not rely on them.
The first thing you need to backup is your files. There are a couple ways to do this. One is to FTP all your files from your host to your own computer. The other way is to run a backup job on your server – this is normally done through your control panel – for instance, cpanel has a backup option. Then you can download a zip file to your hard disk.
If you website consists of static files that you normally upload by FTP then you do not need to worry about this stage. But many people are now using a CMS like WordPress or Joomla. If this is the case, then you need to also back up your databases. Whatever you configure your databases in your control panel, there should be an option to back up the database. In fact, your CMS may even have a plugin that allows you to do it from there.
Otherwise, if you have something like cpanel, then you can download databases individually or as part of the "full backup" I described above.
If there is a disaster then you can restore the databases. This is quite easy and you just use the "import" database function in your control panel and point it to your backup.