WordPress mass update script 3.4

This script will search /var/www (changeable in a variable) for any wordpress installs and make sure its upgraded to the latest version.
It will run a backup to /root/wp_upgrade/ of all files and database before doing anything with the site in case of major catastrophe (make sure you have spare disk space if your sites have a lot of uploaded files).

It pays to check each site after the upgrade to make sure plugins all worked (and upgrade plugins before the upgrade works also!)

Let me know if you have any bugs at all, or any problems.

Here’s your script to upgrade them all.

wget http://b.ri.mu/files/wordpress-upgrade.sh
bash wordpress-upgrade.sh

90df8a99a07f1d13fd23c77d218363ce wordpress-upgrade-3.4.sh

0270b4a5106485d15c4d5710c58d72baa65cfdf2 wordpress-upgrade-3.4.sh

If you find any bugs or problems, just let me know at liz at rimuhosting dot com. I have now renamed the script to wordpress-upgrade.sh for easy future memorability (using symlinks to link to the latest version)

This entry was posted in Rimuhosting and tagged , , , , , , , . Bookmark the permalink.

5 Responses to WordPress mass update script 3.4

  1. Pingback: Upgrading Wordpress

  2. Andrew Pam says:

    The script gets a bit confused if zip and unzip are not installed! Maybe you could check for that and bail out early?

  3. Beth says:

    Thanks. I just started to work on something to do this, but I think yours is better. :)