diff --git a/lang/en/docs/faq.html b/lang/en/docs/faq.html index 6110547f65a..e3f7f66c09e 100644 --- a/lang/en/docs/faq.html +++ b/lang/en/docs/faq.html @@ -142,7 +142,7 @@
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?
@@ -418,6 +418,24 @@ properly on the server. You can test this by calling the script http://yourserver/moodle/lib/session-test.php. +
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.