For those that utilize a MySQL database, whether for a blog, discussion forum, photo page, etc. it is so important to make regular backups of the database(s). You never know when or if the database could be corrupted for any reason.
It is very easy to backup your database, so don’t be afraid! This article will cover a few simple backup (and restore) solutions.
Does your hosting provider offer Cpanel as part of your hosting plan?
If you have access to Cpanel, then you also should have access to the “Backup Wizard” - on the Cpanel main page, check the category “Files”. You should find the Backup Wizard there.

This is a very simple, straight-forward way to backup your entire web site, including all databases. If you just want to backup only your databases, then click the MySQL database link and choose the specific database to backup. Save each file to the folder on your hard drive where you plan to store your database backups.
There is also an option to restore your whole site or a particular database.
The Backup Wizard is probably the easiest way to backup your web files.
If you cannot find the Backup Wizard, or your host doesn’t offer cpanel as part of your hosting package, then contact them to find out what tools are available to you to backup your database(s).
Want to learn more? Read the Rest of the Article
I have been backing up my mySQL databases manually through phpMyAdmin, and although it is an simple, straightforward way to backup, I really wanted to find a more reliable, automated backup system for my database data.
After a remind on an email list, I decided to learn a little more about Cron Jobs. First I googled “cron job backup database” and found an interesting script for backing up Wordpress.
From that page, I also found a more robust MySQL backup script:
AutoMySQLBackup from SourceForge.net
I read the basic instructions, then downloaded the .sh file. I thought the file was fairly easy to configure; make sure to scroll down the page for detailed instructions.
It looked like a simple enough process, but I did have a little trouble. My Notes:
BACKUPDIR="/home/username/backup"./directory/automysqlbackup.sh.2.5 - change directory to your specific name. Also, make sure to include the exact file name. If you are using a version of the script different than “2.5″ you must reference the specific file name, or rename the file to “automysqlbackup.sh”
This looks like a really useful script, and it will make my backups so much simpler and less time consuming!
Update: This morning, I received an email letting me know that the 3AM backup was successful; I checked the backup folder on my hosting account, and found a backup file for Thursday.
List of portable applications on Wikipedia.
Lively conversation (as usual) on digg.com concerning the linked post.