October 30, 2007

Wordpress Blog Backup Methods

Written by: Juanchito
Filed under: add to del.icio.us

        

I think that everyone that blogs should know that they need to backup their blog regularly. Unlike a paper journal, blogs can be backed up easily and copied to a zillion different places if you want. However, the key element to a backup is to do it regularly and verify they work. Backups get outdated quickly.

Luckily Wordpress blogs have a variety of simple backup solutions. In fact, they even have a whole section of the Wordpress Codex for backups. Here’s a few simple things you can do to backup your database.

Wordpress Database/Data Backups
MySQL Database Backup - There are at least 2 ways to backup your blog’s MySQL database. One is using the backup utility your host provides. I’ve found this a pretty nice way to backup the entire blog database. I recommend this backup method for most people. Other more advanced users may want to use phpmyadmin to backup just specific portions of your blog. I know I often will backup my blog without all the statistics data. It makes my backup much smaller and easier to restore.

WP-DB-Backup Plugin - As of a few Wordpress releases ago, Wordpress has bundled the WP-DB-Backup plugin with the base Wordpress install (similar to Akismet and Hello Dolly). That means that most of you already have it available as a plugin on your system. Everyone else can easily download the latest version of WP-DB-Backup. Here’s good instructions and FAQ on using it. This backup will save the backup file to your webhost by default and can be configured to regularly email you a backup of your blog. Pretty slick. Just don’t close your browser when doing it.

Export Option - As of a recent Wordpress release (yes, I’m too lazy to check the exact release), Wordpress has provided a very nice Export option. It’s a really simple way to backup the most essential part of your blog: posts, comments, custom fields, and categories. This backup method is so simple. Just go to Manage–>Export and then click the “Download Export File.” This create a really nice XML file that will be really easy to restore. It doesn’t backup your theme, all the options section, plugins, links that you might have setup. However, all of that can be recreated if needed. Your blogs posts and comments would be the hardest to replace.

Wordpress Files Backup
Host Provided Backup - Every hosting service I’ve seen provides some sort of backup utility. Most of them use CPanel which has a pretty robust set of backup options. On CPanel you want to do a home directory backup. This will backup every file and any file you have uploaded or configured on your website. This is my preferred method, because it zips it up and names it nicely when I download it to my hard drive.

FTP Backup - This is a really simple method to backup all the files that Wordpress uses to display your blog. If you are blogging on Wordpress and don’t know how to use an FTP program like FileZilla, then now’s a good time to learn. Basically in this backup you just create a folder on your local computer and copy all of your blog files into that folder. The key challenge here is to make sure that you selected the right files and that your ftp program didn’t error downloading any of the files.

I haven’t tried to make an exhaustive list of ways to backup your Wordpress blog. One time I lost my entire blog (there was no option to backup at the time) and the only way I could recover it was using Google’s cache. Trust me, you don’t want to ever have to do that.

The decision on when to backup your blog is up to each blogger. The question you need to ask yourself is how much data I’m I willing to lose if something happens to my blog. For some people this may be a day and others a week. Once you’ve answered that question, then you’ll know how often you should backup your blog.

If anyone else has suggestions on other Wordpress blog backup methods, please let me know and I’ll add them to the list.

Side Note: This post only applies to personally hosted Wordpress blogs. If you are using a Wordpress.com blog, then you can only use the Export option listed above. Luckily, that export option should be all you need to restore your blog if Wordpress.com decides to take down your blog.

  • Tags:

    Look for similar articles under these categories: 

    12 responses to "Wordpress Blog Backup Methods"

    1. # CowDir commented on October 31st, 2007:

      Pretty awesome article. Thanks!

    2. # John commented on November 5th, 2007:

      Hi

      thanks for the post. Your post and this one really helped me, I’m so glad there are guys like you helping newbs like me !

    3. # Juanchito commented on November 5th, 2007:

      Great to hear John. Glad the backup procedures helped. Just remember that we were all newbies at some point.

    4. # John commented on November 5th, 2007:

      Hi

      eek botched that one here goes again

      Chris McDermott

      hope that helps

      P.s. what version was the export option in as i couldnt find it on 2.2

    5. # John commented on November 5th, 2007:

      Thanks Juanchito

      yea but my blogs never look as good as your guys

      oh well they serve there purpose thanks again

      john

    6. # Juanchito commented on November 5th, 2007:

      I can’t remember the exact version. My guess would be 2.3 is where they started doing the export option, but I’m not 100% sure.

    7. # Juanchito commented on November 5th, 2007:

      Oh yeah, and my site is definitely a work in progress when it comes to looks. It could sure use the touch of a woman’s hand. However, it’s been good enough for now.

    8. # Jan Polzer commented on January 12th, 2008:

      Nice article, thanks. Did you ever lost your data because of corrupted backup?

    9. # Juanchito commented on January 12th, 2008:

      Sure. That’s actually more common than you would imagine. Most sys admins recommend that you test your backup to make sure you can restore it. Otherwise, a backup that is corrupted is as good as not having a backup.

      I personally don’t do this with all my backups, but doing it regularly is a great idea.

    10. # sarah commented on March 27th, 2008:

      great site , hopefully you get alot of visitors

    11. # Indra commented on April 27th, 2008:

      Hi,

      A more explanation of your post is highly appreciated since I couldn’t understand it clearly.

      Thanks.

    12. # Joe commented on May 31st, 2008:

      The Mega Mall system gets setup when you order and already has pages in your
      site.

    Leave a Reply
    Commenting policy: Some comments run the risk of being deleted. These include comments that are spam or cannot be understood or are rude.
    You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>
    Top - Home