One of the proposed features of the WordPress 2.7 release is quick-upgrading (maybe one-click?). So, until WP 2.7 hits the streets, which probably wont be long since the WP team seems to version-up every month or so now
I figured I would publish a technique I have been using to rapidly update my code-base. This procedure assumes a few things though…
- root access to your host.
- Subversion running on the host webserver.
Ok, so you passed that check-point… time to make life easier
Preparing your blog for quick WordPress upgrading:
- First, back up everything. Codebase, plugins and DB.
- Login to the admin interface and disable your plugins.
- Shell in to the root of your WordPress install directory.
- Copy “wp-content” up a level.
$ cp -Rf wp-content ../wp-content - Check the current path.
$ pwd - Copy that path excluding the current directory. So for example if you see “/usr/web/wordpress” copy this part of the path “/usr/web”.
- Remove the “wp-content” directory.
$ rm -Rf wp-config - Create a backup of your “wp-config.php” file.
$ cp wp-config.php wp-config.php.bk - Check out the latest WordPress tag from the repository.
$ svn sw http://svn.automattic.com/wordpress/tags/2.6/ . - Remove the new “wp-config.php” file and replace with your backed-up version.
$ rm wp-config.php&&mv wp-config.php.bk wp-config.php - Remove the new “wp-content” directory
$ rm -Rf wp-content - Create a sym-link to the new location of “wp-config”
$ ln -s [paste the path you copied earlier here]/wp-config wp-config - Fire up your browser and go to : http://www.yourblog.com/wp-admin/upgrade.php
- Log back into the admin interface and re-enable your plugins.
All done! Next time WordPress upgrades are available as a tagged release you can just follow these quick steps:
Quick 10 step Upgrade:
- Follow the typical WordPress recommended upgrade preparations (backups, disabling plugins, etc.)
- Shell in to the root of your WordPress install directory.
- Create a backup of your “wp-config.php” file.
$ cp wp-config.php wp-config.php.bk - Remove the sym-link to “wp-config”
$ rm wp-config - Check out the latest WordPress tag from the repository.
$ svn sw http://svn.automattic.com/wordpress/tags/2.6/ . - Remove the new “wp-config.php” file and replace with your backed-up version.
$ rm wp-config.php&&mv wp-config.php.bk wp-config.php - Remove the new “wp-content” directory
$ rm -Rf wp-content - Create a sym-link to the new location of “wp-config”
$ ln -s [paste the path you copied earlier here]/wp-config wp-config - Fire up your browser and go to : http://www.yourblog.com/wp-admin/upgrade.php
- Log back into the admin interface and re-enable your plugins.
Enjoy!
Update: Just saw a post concerning this on the WP dashboard
It’s pretty extensive but I’ll still keep my post here for reference. Go here for more details link
