Wordpress has released its new version 2.7 few days ago, and since all my blogs are now controlled with Git behind, here is the way to do it quickly and easyly.
You might take care not to have modified anything in the Wordpress Core files (like wp-includes) or in /wp-content/themes/default as these changes will be crushed during the copy.
- Download Wordpress
- Uncompress the archive on your computer, e.g. ~/Download/wordpress/
- Copy the files from the new Wordpress to your local git clone: cp -r ~/Download/wordpress/* ~/my-blog-clone/
The git part:
- Add the new files in your local git clone: git add .
- Commit the upgrade locally: git commit -a -m “upgrade to new wordpress”
- Push the changes to your git server: git push
Now, connect to your blog server, by ssh:
- ssh username@your-blog-hosting.com
- Move to your blog folder in your server, it should already be a git clone: cd my-blog-clone
- Retrieve the changes from the git server: git pull
You just have to upgrade your blog database now, going to: http://your-blog.com/wp-admin/upgrade.php