ENTRIES
Welcome to Eric Cheng's online journal! You are not logged in. [ Log in ]
«  :: index ::  »

Upgrading WordPress via SVN

:: Sunday, April 22nd, 2007 @ 2:14:11 am

:: Tags:

As is usual, it took me quite some time to listen to Alex‘s repeated suggestions to use SVN to maintain my installation of WordPress (the software this journal runs on). It was actually Alex’s excellent Twitter Tools plug-in that provided the final incentive for my upgrade to WordPress 2.1, and I took advantage of the situation to transition to set it up to use SVN for updates.

The official WordPress page on SVN access provides very little information about how to actually use SVN to manage your installation. I recommend reading the more detailed page on the WordPress site, and both pages of Seth Kinast’s entry on the subject.

For some reason, all of the available online literature about the subject recommends checking out the trunk or tagged versions of WordPress. I spoke with Alex today, and he recommended using the branch versions instead, which makes more sense to me, as well. Using branch versions ensures that you will still get security updates attached to a particular release upon updates. If you check out the trunk version, you will be using potentially broken developer builds of WordPress.

The svn command you would use to check out the version 2.1 branch is:

cd journaldirectory
svn co http://svn.automattic.com/wordpress/branches/2.1/ .

My WordPress installation is “stock” except for the PHP files that implement RSS and Atom feeds, which have been modified to prevent private entries from being revealed. An svn up will not overwrite modified local files, so I can update away on a given branch without worrying that those files will be overwritten. Because I travel so often, I will likely end up doing regular updates via a cron job. At this point, most people point out that an update will break your site if you have modified the core files; luckily for me, it is unlikely that the feed templates will change at all during the lifecycle of a given branch.

If you are afraid you might break your site (I was!), I recommend making a copy of your database and working from a staging directory on your site. Unfortunately, successful duplication of a WordPress installation (to a different directory) requires manual editing of the database copy, which doesn’t seem right…

| Oakland, CA | link | trackback | Apr 22, 2007 02:14:11
  • http://alexking.org/ Alex

    Things are getting better with the site URLs in the db, but I completely agree it sucks. I’ve been advocating making the login and admin post URLs “relative” for (literally) years now; so that you could simply log in and change the URLs in the admin area.

  • Pingback: Around the web | alexking.org

  • http://sethkinast.com Seth

    I use the trunk/ builds simply because that’s the reason I use WordPress from SVN– to test the latest bleeding goodies. Your purposes for using SVN lie more on the side of convenience and less on the path of testing. It works better for you so that’s what counts :)

  • http://sethkinast.com Seth

    Yum, so if you want to upgrade to WordPress 2.2 today, all that is required is:

    -bash-2.05b$ svn switch http://svn.automattic.com/wordpress/tags/2.2

    And you’re done!

ARCHIVES
Journal Home
Where is Eric? (password)
Stuff for Sale
February 2014 (2)
December 2013 (1)
October 2013 (1)
June 2013 (3)
May 2013 (2)
April 2013 (3)
March 2013 (1)
February 2013 (2)
January 2013 (3)
November 2012 (2)
October 2012 (3)
September 2012 (8)
August 2012 (8)
July 2012 (8)
June 2012 (8)
May 2012 (5)
April 2012 (8)
March 2012 (15)
February 2012 (7)
January 2012 (6)
December 2011 (8)
November 2011 (10)
October 2011 (12)
September 2011 (8)
August 2011 (14)
July 2011 (9)
June 2011 (9)
May 2011 (11)
April 2011 (11)
March 2011 (12)
February 2011 (23)
January 2011 (22)
December 2010 (16)
November 2010 (17)
October 2010 (26)
September 2010 (24)
August 2010 (24)
July 2010 (30)
June 2010 (26)
May 2010 (21)
April 2010 (26)
March 2010 (19)
February 2010 (17)
January 2010 (29)
December 2009 (21)
November 2009 (23)
October 2009 (32)
September 2009 (19)
August 2009 (34)
July 2009 (21)
June 2009 (30)
May 2009 (23)
April 2009 (18)
March 2009 (6)
February 2009 (25)
January 2009 (5)
December 2008 (6)
November 2008 (22)
October 2008 (27)
September 2008 (25)
August 2008 (34)
July 2008 (34)
June 2008 (32)
May 2008 (26)
April 2008 (15)
March 2008 (19)
February 2008 (31)
January 2008 (43)
December 2007 (33)
November 2007 (29)
October 2007 (29)
September 2007 (9)
August 2007 (19)
July 2007 (10)
June 2007 (17)
May 2007 (26)
April 2007 (38)
March 2007 (39)
February 2007 (13)
January 2007 (35)
December 2006 (35)
November 2006 (14)
October 2006 (6)
September 2006 (20)
August 2006 (24)
July 2006 (32)
June 2006 (17)
May 2006 (23)
April 2006 (16)
March 2006 (16)
February 2006 (26)
January 2006 (33)
December 2005 (17)
November 2005 (21)
October 2005 (18)
September 2005 (17)
August 2005 (5)
July 2005 (15)
June 2005 (20)
May 2005 (25)
April 2005 (7)
March 2005 (22)
February 2005 (20)
January 2005 (38)
December 2004 (6)
November 2004 (24)
October 2004 (16)
September 2004 (22)
August 2004 (12)
July 2004 (17)
June 2004 (15)
May 2004 (11)
April 2004 (35)
March 2004 (40)
February 2004 (29)
January 2004 (36)
December 2003 (20)
November 2003 (18)
October 2003 (10)
September 2003 (18)
August 2003 (10)
July 2003 (34)
June 2003 (12)
May 2003 (49)
April 2003 (42)
March 2003 (42)
February 2003 (15)
January 2003 (7)
December 2002 (17)
November 2002 (19)
October 2002 (24)
September 2002 (22)
August 2002 (20)
July 2002 (21)
June 2002 (14)
May 2002 (15)
April 2002 (11)
March 2002 (13)
February 2002 (20)
January 2002 (17)
December 2001 (16)
Even Older Journal
Travel Journals

CATEGORIES / TAGS
(25) (2) (1) (3) (1) (1) (1) (6) (2) (3) (11) (8) (3) (1) (1) (4) (2) (4) (2) (1) (6) (1) (1) (1) (6) (2) (1) (1) (1) (3) (1) (5) (1) (1) (23) (1) (1) (1) (1) (1) (14) (1) (10) (1) (1) (2) (1) (1) (1) (27) (6) (3) (2) (4) (4) (1) (1) (41) (11) (12) (4) (38) (1) (3) (2) (4) (1) (1) (1) (1) (2) (1) (1) (1) (1) (1) (10) (25) (8) (3) (2) (3) (2) (1) (5) (1) (1) (2) (1) (1) (14) (1) (5) (1) (1) (5) (43) (1) (1) (1) (3) (24) (1) (1) (1) (1) (5) (1) (4) (1) (1) (10) (1) (3) (1) (1) (1) (1) (6) (5) (1) (1) (1) (3) (1) (3) (1) (1) (1) (69) (4) (3) (7) (3) (1) (16) (6) (1) (29) (1) (7) (1) (4) (4) (4) (1) (1) (1) (1) (1) (1) (1) (10) (4) (4) (2) (1) (89) (14) (1) (2) (79) (2) (2) (1) (1) (1) (1) (1) (1) (3) (2) (3) (1) (1) (24) (3) (5) (4) (1) (2) (1)
MOST POPULAR
Most Popular Posts of All Time


Eric Cheng's RSS Journal Journal RSS
Eric Cheng's RSS Journal Comments RSS

proudly powered by wordpress
script exec time: 0.88s
i hate computers.