mirror of
https://github.com/moodle/moodle.git
synced 2025-02-02 06:10:08 +01:00
added: backup Q&A
This commit is contained in:
parent
f5786441aa
commit
3136f5fa70
@ -142,7 +142,7 @@
|
|||||||
|
|
||||||
<p class="questionlink"><a href="#noadmin">During the initial setting-up process, I never get asked to create an admin account!</a></p>
|
<p class="questionlink"><a href="#noadmin">During the initial setting-up process, I never get asked to create an admin account!</a></p>
|
||||||
<p class="questionlink"><a href="#nologin">I can't log in at all- I just stay stuck on the login screen.</a></p>
|
<p class="questionlink"><a href="#nologin">I can't log in at all- I just stay stuck on the login screen.</a></p>
|
||||||
|
<p class="questionlink"><a href="#backup">How do I backup my Moodle site?</a></p>
|
||||||
<p class="questionlink"> </p>
|
<p class="questionlink"> </p>
|
||||||
|
|
||||||
|
|
||||||
@ -418,6 +418,24 @@
|
|||||||
properly on the server. You can test this by calling the script
|
properly on the server. You can test this by calling the script
|
||||||
http://yourserver/moodle/lib/session-test.php.</p>
|
http://yourserver/moodle/lib/session-test.php.</p>
|
||||||
|
|
||||||
|
<h4 class="question"><a name="backup"></a>How do I backup my Moodle site?</h4>
|
||||||
|
|
||||||
|
<p class="answer">The Unix commands are as follows:
|
||||||
|
<br>
|
||||||
|
cd /backup/moodle.org (substitute your appropriate directory)
|
||||||
|
<br>
|
||||||
|
mv moodle-database.sql.gz moodle-database-old.sql.gz (keep an old copy)
|
||||||
|
<br>
|
||||||
|
mysqldump -h moodle.org -u username --password=moodlepass -C -Q -e -a moodle > moodle-database.sql
|
||||||
|
<br>
|
||||||
|
gzip moodle-database.sql (to compress the new one)
|
||||||
|
<br><br>
|
||||||
|
For the files:
|
||||||
|
<br>
|
||||||
|
rsync -auvtz --delete -e ssh username@moodle.org:/home/moodle/ /backup/moodle.org/moodle/
|
||||||
|
<br>
|
||||||
|
You're done.</p>
|
||||||
|
|
||||||
<h2> </h2>
|
<h2> </h2>
|
||||||
|
|
||||||
<h2> </h2>
|
<h2> </h2>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user