WordPress upgrade with svn sw

Most likely, it’s time to upgrade your instance of wordpress (given their releases are every couple weeks).

Backup the db and code:

mkdir -p ~/.archive
mysqldump blog | gzip > ~/.archive/blog-$(date '+%Y%m%d').sql.gz
cd ~/public_html ; tar czf ~/.archive/blog-$(date '+%Y%m%d').tgz blog

Then upgrade. Note that switching from 2.7.1 to 2.8 isn’t just a “svn switch” — you must svn update first.

[plain highlight="2"]
cd ~/public_html/blog
svn update
svn sw http://svn.automattic.com/wordpress/tags/2.8.3/
[/plain]

The next time you hit the wp-admin page, it will upgrade the db and you’ll be done.


  • Update November 15, 2008: 2.6.5 is out. See installing wordpress using subversion.
  • Update December 14, 2008: 2.7 with new admin UI hotness
  • Update June 15, 2009: 2.8 requires an `svn update`
  • Update July 9th, 2009: 2.8.1
  • Update July 22nd, 2009: oye, 2.8.2
  • Update Aug 4th, 2009: oye, 2.8.3
  • Related posts:

    1. WordPress subversion upgrades
      Most likely, it’s time to upgrade your instance of wordpress (given their releases are every couple weeks). The new built-in automatic upgrade works if you make your blog owned by......
    2. Installing Trac on Ubuntu
      Here’s the condensed version, using the installation guide for help: Install the software sudo apt-get install python-setuptools python-subversion sudo easy_install Trac Initialize the Trac project We’re going to run the......
    3. Solution for mysql_upgrade errno: 13
      Are you upgrading MySQL, and seeing this? [plain highlight="6,7"] $ mysql_upgrade Looking for ‘mysql’ as: mysql Looking for ‘mysqlcheck’ as: mysqlcheck Running ‘mysqlcheck’… …. Could not create the upgrade info......
    4. Installing CrashPlan on Ubuntu 9.04 Server Edition
      Although rsnapshot is super for linux-to-linux backups, I’ve found CrashPlan to work very well as a backup solution for my family’s windows and mac boxes. The CrashPlan installation works pretty......

    This entry was posted in Technical HOWTOs and tagged . Bookmark the permalink.

    One Response to WordPress upgrade with svn sw

    1. maimax says:

      Great, thanks! ^_^

    Leave a Reply

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

    *

    You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">

    Additional comments powered by BackType