Have a backup plan!

This entry was posted by Matt Kendrick on Monday, 13 July, 2009 at

This morning a friend of mine discovered that his hosting company had “accidentally” deleted his website. I spent a good part of the morning helping him pick up the pieces. The good news is they didn’t touch the database used by WordPress. So most of his content was safe. After reinstalling WordPress and restoring some database tables, his site was back functional. None the less, he had to reconfigure his themes and re-upload some images.

Website backups are fairly easy to do. If you’re using a blogging system such as WordPress, you’ll need to backup your database and your web application files. Some hosting companies will perform snapshot backups on a regular bases. But not all hosting companies do. For some of my projects I’ve setup scripts to copy the application files nightly and dump a copy of my database locally. You could use a utility called “wget” to grab your application files. For MySQL databases, “mysqldump” also works well. Both are available for Windows and Linux.

Whatever backup strategy you use, be sure to test it. Performing a mock restore maybe the best way to ensure, you’ve got everything you need. A few hours worth of work now, may ease pain and suffering later. My friend has already switched hosting companies and has a backup plan in place. A good end, to a bad story.


Google BuzzBlogger PostTwitterYahoo BookmarksGoogle GmailBeboGoogle ReaderStumbleUponYahoo BuzzYahoo MailRedditMySpaceDeliciousAmazon Wish ListWordPressYahoo MessengerFarkGoogle BookmarksSquidooTumblrShare

One Response to “Have a backup plan!”

  1. I am “the friend”…and what Matt says about backups is absolutely true, even if you think you have a great hosting provider. Fortunately, Matt was able to save the WP database, which had most of the content, and I was able to upload most images and files which got the site back up.

    One other thing to keep in mind is always know who controls your dns. If the hosting company controls the dns in addition to the website, they really have complete control of your site.

    I would suggest using a third party to “host” your dns. I use http://www.easydns.com and have been extremely pleased with their service for over 5 years.

    Like Matt said, look into these things and test, test test!