Moodle Update Notes
Backup Database
cd /var/www/html
mv moodle.backup old/
mv moodle_backup.sql old/
mysqldump moodle > moodle_db.sql -p
Enter password:
Download new moodle release from https://download.moodle.org/releases/latest/
cd /var/www/html/arch
wget https://download.moodle.org/download.php/direct/stable401/moodle-latest-401.tgz
Backup (move) moodle directory
cd /var/www/html/
mv moodle moodle.backup
cd /var/www/html/
tar xzf arch/moodle-latest-401.tgz
restore moodle config file
cd /var/www/html/
cp moodle.backup/config.php moodle
login into Moodle with admin account and upgrade database