sontek ( John M. Anderson )

March 20, 2008

Upgrading wordpress

Filed under: Bash, Linux — Tags: , , — sontek @ 4:44 pm

I’m lazy, so I just have this basic script I run that upgrades my wordpress:

#!/bin/bash
blog_directory=
update_url=

wget http://wordpress.org/latest.tar.gz
tar -xzvf latest.tar.gz
tar -zcvf blog-backup-$(date +’%F’).tar.gz $blog_directory
cp -rv wordpress/* $blog_directory
links $update_url
rm latest.tar.gz

How do you upgrade your wordpress?

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • description
  • Pownce
  • Slashdot
  • StumbleUpon
  • TwitThis

4 Comments »

  1. Laziness is a programmers best friend. Why do it manually when you can be lazy and write a script to do it for you?

    Comment by smerrell — March 20, 2008 @ 9:49 pm

  2. Ohhh.. so Ugly..but should work :-D you may want to use subversion and update from an stable branch instead.

    Comment by Cristian Rodriguez — March 23, 2008 @ 2:21 pm

  3. I use Subversion to update all my Wordpress installs. Very very efficient.

    Comment by AJ — May 11, 2008 @ 10:37 pm

  4. I use the automatic upgrade plugin. Works well, even makes back-ups for you.

    http://wordpress.org/extend/plugins/wordpress-automatic-upgrade/

    Comment by Dan — May 12, 2008 @ 5:53 am

RSS feed for comments on this post. TrackBack URL

Leave a comment

Powered by WordPress