Technosailor
  • Home
  • Blog
  • Venture Files
  • Espanol
  • Technosailor Staff
  • Twitter Pitch Me!
  • Clients/Disclosures
Jan
07
2007

How We Mass Upgrade Blogs

Posted by: Aaron Brazell

I’ve been getting hounded for some time about how we manage mass upgrades at b5media. It makes no sense to tackle things like you might upgrade, say 1, blog. Download. Unzip. FTP. Upgrade. It’s fast, but not when you have over 20 blogs. So I’m releasing our (slightly modified) script for public consumption.

Remember, our methods work because we are consistent. We manage consistently. We centralize when possible. We use Subversion. We have standard naming conventions. We use standard practices. Because we are consistent, our methods work. Your mileage may vary. Depends on how consistent you are.

This script assumes two things. It assumes that the comment field of each unixaccount is a normalized domain name. That is example.com - no slashes. No www. no http://. Just the top level domain. This is a discipline thing and requires making sure each new account is assigned a domain. If a user account does not have a domain, add it with usermod -c example.com user where example.com is the domain and user is the unixaccount.

It also assumes that the admin has a centralized database somewhere that can be tapped into for the blog urls. I’ll leave you to your own devices on this one. The script also requires PHP with cURL and the script must be run from the command line interfact (CLI) so the script must be owned by root and have owner execution permisions.

Other than that, have at it. This is not supported in any way shape or form and my releasing it here is merely to fill a request. I will not support this. Period. Consider it for your academic uses. :)

I am available for paid consulting though.

Source Code

Update: The source code has been updated. Notably, I’ve learrned a new trick. That is reading in user input from the command line in PHP. So now, the script prompts for revision number of WordPress. If a revision number is given, the blogs are upgraded to that number. If not, it defaults to trunk. Also, I moved the SVN magic out of a shell script and into this script. It also adds a timer so I can stop looking at the clock. ;)

[root@b5media-db2 ~]# ./wpup.php What WordPress Revision? (default TRUNK) 4731 Upgrades completed in 4 minutes and 54 seconds

  • Add to Mixx!
  • Stumble it!
About the Author: Aaron Brazell is the lead editor of Technosailor.com and a social media expert. His passion is to see companies and individuals use the internet and web technologies wisely and effectively to promote their brands and companies. He served as Director of Technology at b5media from 2005-2008 and is currently an independent consultant.
Tagged: at 2:46 am -

9 Responses to “How We Mass Upgrade Blogs”

  1. 1
    Sean Says:

    As a guy who had a hand in other parts of the b5 setup I’ll add another note about consistency: Pretty much everything is done by scripts. The comment field has the domain name in it because the account creation routines did it. That way we can use scripts like the mass upgrade one.

    Sean (who does paid consulting on Linux stuff too :) )

    January 7th, 2007 at 11:43 am
  2. 2
    Aaron Brazell Says:

    Yep. Couldn’t survive without you, Sean. :)

    January 7th, 2007 at 2:42 pm
  3. 3
    Jeremy Wright Says:

    I’d like to note that this is really only a part of an ever-evolving picture. Aaron’s done a fantastic job at nudging us towards a more centralized and managed environment and tools like this certainly don’t hurt ;-)

    January 7th, 2007 at 8:43 pm
  4. 4
    HART (1-800-HART) Says:

    Well, thanks for clearing that up (I wasn’t really hounding, was I?)

    I’m not sure something like this would be suitable for me - at this stage. And, I have no clue what that thing about the comments and domain have to do anything about it, but that’s beside the point. I have two ISPs .. one is on Windows not unix, and the other is a Reseller Account with it’s own issues and individual logins, split among many individual servers.

    Rather than take a crash course in Computer programming, I now see the need ever more to try and join the crowd in influencing WORDPRESS to just include an automatic upgrade!

    Thanks for sharing.

    January 13th, 2007 at 3:55 pm
  5. 5
    Aaron Brazell Says:

    The WordPress philosophy is for the individual blogs and bloggers. Very little is done to assist in Enterprise. That’s not a knock against WordPress. Just that they can’t be all things to all people.

    Microsoft recognized this for a long time now - which is why, among other things, they have Windows XP Home and Windows XP Pro.

    The best chance there is for a WordPress that is gerared to enterprise is a fork.

    We’re content with what we have to do now, so we’re not pushing for a fork. But a fork would be useful as more big businesses running multiple instalations of WordPress come to the forefront.

    For the record, it is difficult for anyone to maintain WordPress on our scale without dealing with systems stuff - that is, getting outside of WordPress immediate.

    Then there is WPMU.

    January 13th, 2007 at 4:00 pm
  6. 6
    HART (1-800-HART) Says:

    There are also issues too, with WPMU .. I’m running a version at http://PetLvr-Blogs.com however, I’m just playing now :)

    January 13th, 2007 at 4:04 pm
  7. 7
    HART-Empire.com » Quickies - January 15, 2007 (HART-EMPIRE NETWORK) Says:

    [...] to the same level .. I wish I could utililize a mass automated upgrade process … like Aaron Brazell suggests … but I’m not quite ready (knowledgable-wise) to implement something like [...]

    January 15th, 2007 at 3:10 am
  8. 8
    Around the web | alexking.org Says:

    [...] How We Mass Upgrade Blogs - Technology, Blogging and New Media [...]

    January 21st, 2007 at 3:09 pm
  9. 9
    b5media - Brian Layman Joins Tech Team Says:

    [...] he released his own tool for upgrading WordPress blogs and I followed shortly thereafter with the script I developed for use at b5media. He has supposedly recanted his sacrilege in return for us hiring [...]

    April 30th, 2007 at 10:04 am

Or add a Video Comment
with
« Back to text comment
  • Recent Posts

    • Are People Talking About You?
    • Western Style Writing vs. Eastern Style Writing
    • How Has Social Software Changed Your Life?
    • America the Beautiful
    • Identi.ca and the Art of the Launch
  • Reader Contribution

    • Brian Clark on Western Style Writing vs. Eastern Style Writing
    • Jeffrey on Western Style Writing vs. Eastern Style Writing
    • Jeffrey on What a designer is and isn’t…seriously you need to know…
    • Igor The Troll on Are People Talking About You?
    • Aaron Brazell on 10 Things You Need to Know About WordPress 2.6
  • RSS Venture Files

    • The Difference Between Designers and Marketers
    • But this worked four years ago?
    • Rules for Entrepreneurs - Avoid relying on a few whale customers
    • 6 Steps to Successful Small Business PR
    • Rules for Entrepreneurs - Outsource what you suck at
  • RSS Wicked Marketing

    • Yeah it’s cheaper, but what are you really getting?
    • What a designer is and isn’t…seriously you need to know…
    • The difference between success and closing next year…
    • It’s time to get Wicked…
  • RSS Technosailor en Español

    • PopTok: usa tus películas favoritas para enviar un mensaje
    • Video en Vivo desde tu iPhone
    • 7 Funciones que le Faltan al iPhone 3G
    • Como Vencer la Sobrecarga Informativa
    • La Batalla es Digital
  • Tip Jar


  • License Creative Commons Attribution-Noncommercial-Share Alike 3.0 | Copyright © 2004 - 2008 - Aaron Brazell | Lisa helped out | Privacy Policy

    Twitter Pitch!

    <p>Twitter pitching is a form of pitch that requires succint "what does this mean for me" kind of pitching. It is the ultimate efficiency of words. You have 140 characters or less to tell me why your pitch matters to me or my readers. Please include a means of contacting you. This is included in your 140 characters. If you send successive pitches, you will likely be ignored, unless it's obvious that the first pitch was a case of "accidental send", etc.</p> <p>This form of pitching does not mean I'm being a diva. It means that my time is valuable, and you want a piece of it. It's good practice for you, and delivers your pitch in a format I want. Win-win.</p>


    (X) Close

    Twitter Pitch Me!