Backup and Update a WordPress Blog in Under 12 Seconds

Date November 20, 2007

Welcome to BloggingNotes. You may want to subscribe to my full text RSS feed. This message will only appear once. Thanks for visiting!

Actually, that title is a little misleading. I was able to backup and update three WordPress blogs in less than 12 seconds. There are a few requirements before you can put this in place, which I’ll explain in a bit.

Back in April, I was listening to the WordPress Podcast and heard Aaron Brazell mention that b5media is able to get over 200 blogs upgraded in under 30 minutes when WordPress releases an update. While I was doing a little research on this, I came across Brian Layman’s site- he’s b5’s code ninja, and has released a script that will back up your blog, and if there’s a WordPress update, will upgrade the blog automatically. Total time this morning to do my three blogs? 11.88 seconds.

The code for the script is available on Brian’s site, and it’s really as simple as editing it with the URL and directory where your blog is stored, and turning it loose. The file should be run from a directory on your site that’s not publicly available, as that’s where it’s going to put your site backups as well.

To be safe, please make sure that your blog is backed up before you run it the first time. You’re responsible for what happens to your site, and no one else will be liable if something goes wrong. It probably won’t, but wouldn’t you rather make sure, at least the first time?

The requirements that I mentioned above? Your site must be self-hosted (ie, not a wordpress.com site), and you need to have rights to run scripts from the shell. Talk to your host to make sure that they’ve got you set up to do that.

Short of that, it’s a drop dead simple method for backing up and upgrading your blog if you don’t have a system set in place yet.

Send the word: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • del.icio.us
  • StumbleUpon
  • bloggingzoom

Related Posts

4 Responses to “Backup and Update a WordPress Blog in Under 12 Seconds”

  1. RT Cunningham said:

    I checked it out, but I don’t have the access to use it as described.

  2. Rod said:

    That’s unfortunate, as it really is a simple way to backup and upgrade your site.

    Undoubtedly there’s going to be other methods for doing this as a plug-in, if not now then probably soon.

  3. Stuff I Didn’t Get To This Week (Vol. I) — BloggingNotes.net said:

    [...] And that would be a bigger tragedy. So, please, back up your blog. I’ve even posted about a super simple script that’ll do it if you’re using a self-hosted WordPress configuration. Send the word: [...]

  4. BloggingNotes.net » Urgent Security Release for WordPress: Upgrade to 2.3.2 said:

    [...] myself, I just ran my upgrade script and three blogs were secure. Time? 24 seconds. Send the word: These icons link to social [...]

Leave a Reply

XHTML: 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>

Comments for this post will be closed on 19 November 2008.


This blog uses the CommentLuv plugin which will try and parse your sites feed and display a link to your last post, please be patient while it tries to find it for you.