Moodle/Update: Unterschied zwischen den Versionen
Keine Bearbeitungszusammenfassung |
|||
Zeile 7: | Zeile 7: | ||
; Download | ; Download | ||
<syntaxhighlight lang="bash" line> | <syntaxhighlight lang="bash" line> | ||
wget https://download.moodle.org/download.php/direct/stable404/moodle-latest-404.tgz | |||
</syntaxhighlight> | </syntaxhighlight> | ||
Zeile 13: | Zeile 13: | ||
==== Konfiguration ermitteln ==== | ==== Konfiguration ermitteln ==== | ||
<syntaxhighlight lang="bash" highlight="1" line> | <syntaxhighlight lang="bash" highlight="1" line> | ||
grep '$CFG->db' moodle/config.php | |||
$CFG->dbname = 'databaseName'; | $CFG->dbname = 'databaseName'; | ||
$CFG->dbuser = 'databaseUserName'; | $CFG->dbuser = 'databaseUserName'; | ||
Zeile 21: | Zeile 21: | ||
==== Datenbank ==== | ==== Datenbank ==== | ||
<syntaxhighlight lang="bash" highlight="1" line> | <syntaxhighlight lang="bash" highlight="1" line> | ||
mysqldump --user=$databaseUserName --password=$databasePassword $databaseName > backup/$databaseName_$(date -I).sql | |||
</syntaxhighlight> | </syntaxhighlight> | ||
; Beispiel | ; Beispiel | ||
<syntaxhighlight lang="bash" line> | <syntaxhighlight lang="bash" line> | ||
mysqldump c1moodleFoxtomDe > backup/c1moodleFoxtomDe_$(date -I).sql | |||
</syntaxhighlight> | </syntaxhighlight> | ||
==== Dateisystem ==== | ==== Dateisystem ==== | ||
<syntaxhighlight lang="bash" highlight="1" line> | <syntaxhighlight lang="bash" highlight="1" line> | ||
tar -czf ../backup/seminareFoxtomDe_$(date -I).tar.gz moodle | |||
</syntaxhighlight> | </syntaxhighlight> | ||
Version vom 15. Oktober 2024, 13:47 Uhr
Moodle Update - Software-Aktualisierung
Vorbereitung
- Version
- Download
wget https://download.moodle.org/download.php/direct/stable404/moodle-latest-404.tgz
Datensicherung
Konfiguration ermitteln
grep '$CFG->db' moodle/config.php
$CFG->dbname = 'databaseName';
$CFG->dbuser = 'databaseUserName';
$CFG->dbpass = 'databasePassword';
Datenbank
mysqldump --user=$databaseUserName --password=$databasePassword $databaseName > backup/$databaseName_$(date -I).sql
- Beispiel
mysqldump c1moodleFoxtomDe > backup/c1moodleFoxtomDe_$(date -I).sql
Dateisystem
tar -czf ../backup/seminareFoxtomDe_$(date -I).tar.gz moodle
Durchführung
Archiv entpacken
$ tar -xf moodle-latest-404.tgz
Daten übertragen
$ mv moodle moodle.bak
$ cp -au moodle.bak/question/type/multichoiceset/ moodle/question/type/
$ cp -au moodle.bak/course/format/tiles moodle/course/format/
$ cp -au moodle.bak/config.php moodle
$ cp -au moodle.bak/blocks/featuredcourses moodle/blocks/
$ cp -au moodle.bak/mod/ moodle/
$ cp -au moodle.bak/theme/stream/ moodle/theme/
Zugriffsrechte korrigieren
# chown -Rc web76:client1 moodle
Einstiegspunkt ändern
Konfiguration anpassen
Erweiterungen aktualisieren
Update-Skript
Anhang
Siehe auch
Dokumentation
Links
Projekt
Weblinks