From 3136f5fa7031cc6435480d12f61497a4a20dfede Mon Sep 17 00:00:00 2001 From: johncaptain Date: Thu, 31 Jul 2003 17:18:39 +0000 Subject: [PATCH] added: backup Q&A --- lang/en/docs/faq.html | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) 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 @@ - + @@ -418,6 +418,24 @@ properly on the server. You can test this by calling the script http://yourserver/moodle/lib/session-test.php.

+

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.

+