Automated WordPress MU Upgrade Script

Recently, the good people at wordpress.org released an upgraded version of their WordPress MU script, and so I had to drop everything else that I was doing to install the upgrade here.

It took me 4 days but I installed the update today, and amazingly, everything seems to be still working! I am amazed because for the first time in my life, I updated the site by running a shell application, one that I wrote myself. It took me a while to write the PHP CLI SAPI shell application that completely automates the whole WPMU upgrade process, but I think it was worth all the effort, because from now on, I just need to run this one script and GIDBlog.com will be updated within minutes, and I don’t have to remember all the details or go through lines upon lines of upgrade instructions.

The automated upgrade script handles nearly everything, from downloading the WordPress MU (tar) file down into this web server, extracting the tar.gz file, creating the MySQL and file backups, moving (or deleting) the required files into (or out of) the wp-content folder, to even controlling (stopping and restarting) the httpd daemon while the upgrade is in progress!

Now I can’t wait for the next WordPress MU upgrade — I’ll just log into this server, type:

> upgrade_wpmu.php

on the command line, and within a few minutes, this web site will be upgraded. It’s just too cool! I don’t know why I never thought of doing this before!

Meanwhile, if you find something not working right, just leave a comment below.  I am good, but maybe not that good! :P

9 Comments »

This is great. Could you integrate a backup scheme that could do all your archiving as well. Perhaps even send a blog owner a backup of their WP content once a week via email?

Everything looks the same to me, which I guess means that everything worked. ;)

Comment by cableguy — June 30, 2007 @ 7:21 pm

Has anyone noticed not getting emails when a message is in the moderation que?

I wonder if this has anything to do with the changes.

Comment by cableguy — June 30, 2007 @ 11:39 pm

I haven’t received any comments for a while so I can’t tell you if I’m no longer getting the moderation emails. If/when I do, I’ll let you know.

Comment by crystalattice — July 3, 2007 @ 11:15 am

Well, I am getting ALL my email notifications, even the spammy ones! :P

Anyway, I will post a few comments on your blogs and you can tell me if you receive the emails.

cableguy,

The email notification you DIDN’T receive was for a trackback that occured before the upgrade, so I am not sure what happened there.

I noticed you have received at least one comment since the upgrade, did you get the memo… I mean, the email?

Comment by J de Silva — July 3, 2007 @ 11:23 am

No, I haven’t gotten any notifications. I’m going to make changes to my email notification and see if something just needs to be helped along.

Since it is working for you, that’s what I wanted to hear. Could be the dumbest thing. It usually is.

Comment by cableguy — July 3, 2007 @ 5:57 pm

Turns out one of my gmail accounts the replies went through was filing the responses as spam.

Go figure.

Comment by cableguy — July 5, 2007 @ 1:38 am

Thank you for the feedback anyway; I am just glad it wasn’t something complicated that I’d have to fix! :P

Comment by J de Silva — July 7, 2007 @ 12:53 am

Site successfully upgraded today. Thanks to the script, it was totally painless, and I did it in just a minute! :)

Comment by J de Silva — August 11, 2007 @ 12:07 pm

Hi!

Have you made that script for personal use only bcoz I am not seeing any link on this webpage. Is it available to download. Please send me the link.

Thank you

Comment by rock — November 23, 2007 @ 10:36 pm

Leave a comment

Theme designed by J de Silva exclusively for GIDBlog.com.