Just started using svn

subversion logo

Today I started using subversion to update this website. After couple of initial hick ups things are working pretty fine now. If you are planning to use svn make sure to backup the blog before checking out.

Here is how I set up the blog to update using svn.

  1. In Terminal cd to the document root. (eg. cd /srv/www/htdocs/)
  2. mv <blog dir>/ <backup>/ -> If anything goes wrong, you could reinstate the blog by reversing the above.
  3. svn co http://svn.automattic.com/wordpress/trunk/ <blog dir>/ -> This will download a working copy of the latest WP bild.
  4. cp <path to wp-config.php from the backedup copy> <path to new blog root>/ (eg. cp backup/blog/wp-config.php blog/)
  5. cp <path to backed up copy of the uploads> <new wp-content dir> (eg. cp backup/blog/wp-content/uploads blog/wp-content/)
  6. cd <blog dir> and issue svn update command to upgrade the WP version.
  7. When you switch to the login mode, WP will automatically attempt to update the database. If there are any plugins or themes missing, you could install them now. (some plugins can be updated directly in the Admin mode)

Previous Next

Leave a Reply