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! ![]()
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