====== 更新 Wordpress 版本 ======
http://codex.wordpress.org/Upgrading_WordPress
===== 備份檔案 =====
# tar -cvvf wordpress_backup_[date].tar public_html
# mv public_html wordpress_old_[version]
===== 備份資料庫 =====
用 phpmyadmin or mysqldump 等等
===== 下載新版本 =====
http://wordpress.org/download/
===== 解開 =====
# tar -zxvf [filename].tar
===== 更改資料夾名稱及存放路徑 =====
# mv wordpress [自定]
===== 修改設定檔 =====
wp-config.php
// ** MySQL settings ** //
define('DB_NAME', 'wordpress'); // The name of the database
define('DB_USER', 'username'); // Your MySQL username
define('DB_PASSWORD', 'password'); // ...and password
define('DB_HOST', 'localhost'); // 99% chance you won't need to change this value
// You can have multiple installations in one database if you give each a unique prefix
$table_prefix = 'wp__'; // Only numbers, letters, and underscores please!
===== 讓網頁自動更新 =====
http://[DN or IP]/[path to wordpress]/wp-admin/upgrade.php
===== 將 theme 複製回去 =====
將 theme 和 plug-in 複製回去,以及將 mail 到 news 的程式碼複製回去
===== 完成 =====
算蠻容易的~
====== 製作版本差異檔 ======
在 blog 檔案目錄的上一層
$ diff -ruN wordpress-2.1.2 wordpress-2.1.3 > 212_to_213
$ patch -p1 < ../212_to_213