Backing Up Your WordPress Installation

I use WordPress to power a few blogs that I run. It’s a robust, well-structured and powerful backend for any type of web site that has a chronological updating cycle.

After using WordPress for some time, you will undeniably have amassed a very valuable asset; your blog content. Believe it or not, unless you’re running a splog, your posts and pages are valuable. They contain nuggets of information you’ve jotted down over time. Even if they don’t have monetary value, I’m sure they have some sort of sentimental value.

Therefore, it is only just that you treat them as real assets; and for any sort of computer data, this means backing them up for safety. You won’t know what could happen to your server.

Basically these things should be backed up:

  • Your WordPress database
  • Your wp-content directory (or folder for you Windows folks)
  • Other special data directories

You need not back up your full WordPress installation’s main directory because you can always grab the latest WordPress core files from WP’s download page. Some would also recommend that you back up your wp-content.php file; however, this is only useful if your database settings are exactly the same as your current server. If you’re changing hosting providers, this file would be almost totally useless.

The wp-content directory is where almost all of your blog’s customisation files reside; namely your plugins and themes. Therefore, backing up this directory is very important. In the worst case scenario that you have to reinstall WordPress, replacing the default wp-content directory with your latest backup would guarantee all your favourite themes and plugins are restored.

If you store additional files that you link to in your blog, you should back them up as well. For me, I store images I use in my blog posts in a directory called images (for most WP users though, your images would be in wp-content). I also store my WordPress themes and widgets in a directory called files. Therefore, they need to be backed up as well.

I do all of the above automatically via my server using a little bit of scripting magic. If you want to know how I do this, subscribe to my RSS feed! You’ll be the first to know when I post this information.

If you’re reading this post via a link about Datuk Noh Gadut’s death, please note that that news is totally inaccurate (ie. 100% wrong). It was Datuk Noh’s mother that passed away. I apologise for any inconvenience.

3 responses to “Backing Up Your WordPress Installation”.

  1. kucau Says:

    happy birthday Azmeen!!

  2. Site Admin Azmeen Says:

    Thank you Dr. Kucau 🙂

  3. papajoneh Says:

    I’m backing up now sir… phhhewww thanks for the reminder 😉