My favorites | Sign in
Project Logo
                
Code license: MIT License
Labels: wordpress, bash, linux, script, upgrade, update
Show all Featured downloads:
wpupdater-1.2.1.zip
People details
Project owners:
  ad...@vunite.com

About

WPUpdater is a simple bash script for upgrading WordPress directly from WordPress subversion repository.

The script will backup the current WordPress installation and database into a single zip file; cleans up everything that's part of the WordPress release package; and ignores custom themes, plugins, and the wp-config.php file.

The backup zip, wpbackup.zip, is located in the WordPress installation directory. The script does not merge in changes to the wp-config.php file, and these changes will have to be manually merged in after the update process has completed.

News

Usage

Usage: wpupdater -d -v -h -u -p -s -b -c -t
Options: These are optional argument
-d base directory where WordPress is installed (will automatically prepend HOME)
-v version of WordPress to install
-h mysql database host
-u mysql database username
-p mysql database password
-s mysql schema name
-b 1 to enable backup and 0 to disable
-c 1 to enable cleanup and 0 to disable
-t 1 to enable update and 0 to disable

Examples

Dreamhost

# Update mydomain.com folder to version 2.6.1 of WordPress
./wpupdater.sh -d mydomain.com -v 2.6.1 -h mysql.mydomain.com -u me -p hackme12 -s wordpressdb

# Update mydomain.com folder to version 2.6.1 of WordPress and disable backup and cleanup
./wpupdater.sh -d mydomain.com -v 2.6.1 -h mysql.mydomain.com -u me -p hackme12 -s wordpressdb -b 0 -c 0

# Disable update process, this script will backup WordPress environment and Database, without updating WordPress.
./wpupdater.sh -d mydomain.com -v 2.6.1 -h mysql.mydomain.com -u me -p hackme12 -s wordpressdb -t 0

Media Temple

# Update mydomain.com folder to version 2.6.1 of WordPress
./wpupdater.sh -d domains/mydomain.com/html -v 2.6.1 -h mysql.mydomain.com -u me -p hackme12 -s wordpressdb








Hosted by Google Code