0
Kiss Wordpress Upgrade Script
Description
This is a KISS ( Keep It Simple Stupid ) script to backup and upgrade to the latest version your wordpress blog.You will need a shell / ssh to run this script ( tested on standard linux bash ).
Features
- No configuration needed
- Full Database Backup
- Full blog root backup excluding the backup directory
- Automagic blog upgrade
- Easily written and hence easily adaptable
Installation
open a shell and “cd” to your wordpress blog root path ( the one that contains wp-admin directory or wp-config.php for example)
wget http://www.lucagasperini.com/wpautoupgrade.sh
chmod u+x wpautoupgrade.sh
Usage
open a shell and “cd” to your wordpress blog root path
sh wpautoupgrade.sh
Now point your browser to http://www.example.com/wp-admin/upgrade.php
Restore
I have an idea for doing things the KISS way but no time for now so you have to do things manually . The backup performed is standard so you can simply follow the codex.
Notes
- Two different backups are made , content and sql table, they are stored in /pathtoblog/backup.
- To download your blog backup file point your browser to http://www.example.com/backup/files.tar.gz.
- To download your sql table backup point your browser to http://www.example.com/backup/sql.gz
- All backups are kept and are not backed-up ( buckups don’t contain older backups). This mean that over time the backup directory can potentially become huge.Check it and delete older ones
- I didn’t want this script to call the upgrade.php autamatically cause it means no feedback at all.
- If you don’t have a standard wordpress install don’t use this script. For example if you use a Debian package to install wordpress this script won’t work because the deb has been debianized and all config have been moved to /etc/wordpress rather than standard /blogroot
- If it doesn’t work is your fault



Latest Comments: