When I use a manual procedure to copy our production Moodle server to a standby server, new courses on the production server do not appear in the backup server.
both systems are running Ubuntu 14.04 and Moodle 3.0.1
Backup procedure is:
On Production Server
tar and zip /var/moodledata to moodleDATA.tar.gz
tar and zip /var/www/html/moodle to moodleHTML.tar.gz
mysqldump -u root -p (pw) moodledb > moodleSQL.sql
then move all archives to Standby Server
Restore procedure is:
On Standby Server
mv /var/moodledata /var/moodledata.bak
unzip/untar moodleDATA.tar.gz to /var/moodledata
mv /var/www/html/moodle /var/www/html/moodle.bak
unzip/untar moodleHTML.tar.gz to /var/www/html/moodle
mysqldump -u root -p (pw) moodledb < moodleSQL.sql
Problem is:
Courses created on Production server do not show up in the Standby Server.
Diagnostics:
- parsing the moodleSQL.sql file shows the courses are present in the sqldump file
- backups run from CLI as root user
- file permissions/ownership are correct, server has rwx access to moodledata
Questions:
Do I need to backup and restore courses as a separate job from the site backup?
Do I need to create empty courses of the same name on the Standby server?
Is there another procedure for complete site transfer I should be using?
Any suggestions appreciated.
-Jeff