Upgrading WordPress through Shell

I was very proud of myself for upgrading from WordPress 2.1 to 2.1.1 within a few days after it was released. At least until I read about the entire 2.1.1 release having been compromised to some hacker. Even though I had probably downloaded the new WordPress build before it was compromised, better not to take chances, right? Still, downloading the files, unzipping and FTPing them back up is annoying, especially when you have to do it for multiple sites.

That is why I am very thankful that I saw this: Upgrading WordPress via Shell.  I am a Windows guy without so much *nix scripting experience. Still if this could work, it would be a big time saver.

Fast forward 10 minutes. I enabled shell access with to my hosting account, logged in using PuTTY, went to the proper directory, ran the commands (very carefully), repeated for a second blog. Two blogs upgraded to 2.1.2 in 10 minutes, very little pain (awesome). (Oh yeah, and don’t forget to do a backup before running any scripts in your hosting account, or messing around with WordPress in any way. You have been warned).

Tagged , , , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *