Jul 31st, 2007
Taking the backup of your website
Getting backup of your web site is also of as important as having your PCs backed up.
Even if most of the hosting services claim to have regular backups, you have to do backups in your part as well. In case you corrupted/deleted some files your self, the hosting service provider’s backup won’t help
Items to backup from your web site
Depending on the size and type of the website you are having, the backup needs vary. If you have a website with just static content, then including the website source in the backup plan should be sufficient.
But, if you are running a web site driven by a data base and scripts, then your backup should cover all these to ensure a proper recovery
The source files
You should regularly take the backup of the source (static pages as well as the scripts -PHP, ASP, Perl etc ) of your web site. The backup should include any third party source (the scripts for the Blog, Forum software etc ) that you installed on the web site as well. If you keep an up to date copy of your web site in your PC, then backing up that should be sufficient.
If not, you will need to FTP to your web site and download all the source in regular interval.
Data bases
Most of the websites contain a good portion of the website generated dynamically. Blogs and forums are examples. The content comes from the database. So in this case taking backup of just the source is not sufficient. You will have to take the backup of the database as well.
If your website is using MySQL database, you can use PHPMyAdmin interface to backup your data. Most of the hosting services support MySQL and most of the scripts- blogs , forums etc - put their data in the MySQL database.
Remember, you have to take the backup of the entire database; not just some tables. You have to get PHPMyAdmin to export all the data in the database to a file and then download and backup the file safely.
However, if the database is big, it may be difficult to backup using PHPMyAdmin. You will have to use mysqldump command to export the data to a file and then download the data file.
See: this article on mysql backup for an example.
Emails
Although you may be downloading the emails from your web server to local computer, it is just important to include the emails also as part of the web site backup.
Restoring and restore drills
Just like any other backup, your web site backup will be good only if the web site could be restored quickly from your backups. You can test the sufficiency of your backups by running restore drills. But how to run restore drills? It is not recommendable to run test restore drill on your live web site.
The solution is to have a local test web site (running on a local machine) just for the testing purpose. Configuring a local web site is not very difficult; you can download Apache, Mysql and PHP and install them and create a test web site.
Alternatively, you can download a pre-configured vmware virtual appliance that has all the required software installed and ready to go.








