Upgrading moodle
- Switch server into maintenance mode
- cd to top-level WWW directory
- cd <workdir>
- tar zxf /tmp/moodle-<latest>.tgz
- cp -p ../moodle/moodle/config.php moodle/
- cd ..
- mv moodle/moodle moodle-<oldversion>
- mv <workdir>/moodle moodle/
- Go to notifications page and perform updates
- Switch server out of maintenance mode