From 3136f5fa7031cc6435480d12f61497a4a20dfede Mon Sep 17 00:00:00 2001
From: johncaptain During the initial setting-up process, I never get asked to create an admin account! I can't log in at all- I just stay stuck on the login screen. How do I backup my Moodle site?
The Unix commands are as follows:
+
+cd /backup/moodle.org (substitute your appropriate directory)
+
+mv moodle-database.sql.gz moodle-database-old.sql.gz (keep an old copy)
+
+mysqldump -h moodle.org -u username --password=moodlepass -C -Q -e -a moodle > moodle-database.sql
+
+gzip moodle-database.sql (to compress the new one)
+
+For the files:
+
+rsync -auvtz --delete -e ssh username@moodle.org:/home/moodle/ /backup/moodle.org/moodle/
+
+You're done.