WordPress mass update script 3.3.1


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).

I have now added putting the site into maintenance mode whilst upgrading. This just involves adding a .maintenance in the document root.

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-3.3.1.sh
bash wordpress-upgrade-3.3.1.sh

MD5
e365a7fa4b69b3ad52e75b4175c1539a wordpress-upgrade-3.3.1.sh

SHA1
653d1a95a89cfc4be3253af96ef915ba3615ad18 wordpress-upgrade-3.3.1.sh

If you find any bugs or problems, just let me know at liz at rimuhosting dot com


2 responses to “WordPress mass update script 3.3.1”

  1. many thanks for the script , now is there a similar way to keep the plugins & themes up to date ?

    Thanks