Here are the details. I used the Backup feature in Moodle. That worked. I then copied the zip files to the laptop which is running moodle. Restored and one of the courses showed up with a funny name. No worries... part of learning.
I noticed that the theme was no longer green but was now orange (the default theme). First indication that something didn't restore 100%.
No worries, I read a bit more and decided that a full backup required some Unix scripting on my part. So, I started into the Man pages for tar.
Now I made a simple backup script with tar to grab the DB, the entire site, and the Data folder.
I thought that would be all I would need. I then coped the tar balls over to my laptop and restored them.
This is where it gets weird. After restoring, everything is the same as before when the theme was back to default and the course name was wrong. The logs show all the activity from the tower though.
I didn't restart Apache or even stop SQL when I did the backup... Do I need to?
Why would this not work? Next, I got drastic and deleted all of the folders for the DB, Data, and the site. Then restored. Everything is there now. I logged back in... and everything is back to the way it was... wrong theme, wrong course name... I don't get it.
Here is the backup script:
cd /usr/local/mysql/data
tar cZf /moodle.DB.tar ./moodle
chown andrewgrant:admin /moodle.DB.tar
cd /Library/WebServer
tar cZf /MoodleData.tar ./MoodleData
chown andrewgrant:admin /MoodleData.tar
cd /Library/WebServer/Documents
tar cZf /moodle.site.tar ./moodle
chown andrewgrant:admin /moodle.site.tar
Here is the restore script:
cd /usr/local/mysql/data
tar xZf /moodle.DB.tar
cd /Library/WebServer
tar xZf /MoodleData.tar
cd /Library/WebServer/Documents
tar xZf /moodle.site.tar
Does anyone have a clue or answer for this one?