Moodle/Update: Unterschied zwischen den Versionen
Keine Bearbeitungszusammenfassung |
|||
Zeile 12: | Zeile 12: | ||
=== Datensicherung === | === Datensicherung === | ||
==== Konfiguration ermitteln ==== | ==== Konfiguration ermitteln ==== | ||
<syntaxhighlight lang="bash" line> | <syntaxhighlight lang="bash" highlight="1" line> | ||
$ grep '$CFG->db' moodle/config.php | $ grep '$CFG->db' moodle/config.php | ||
$CFG->dbname = 'databaseName'; | $CFG->dbname = 'databaseName'; | ||
Zeile 20: | Zeile 20: | ||
==== Datenbank ==== | ==== Datenbank ==== | ||
<syntaxhighlight lang="bash" line> | <syntaxhighlight lang="bash" highlight="1" line> | ||
$ mysqldump --user=$databaseUserName --password=$databasePassword $databaseName > backup/$databaseName_$(date -I).sql | $ mysqldump --user=$databaseUserName --password=$databasePassword $databaseName > backup/$databaseName_$(date -I).sql | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Zeile 30: | Zeile 30: | ||
==== Dateisystem ==== | ==== Dateisystem ==== | ||
<syntaxhighlight lang="bash" line> | <syntaxhighlight lang="bash" highlight="1" line> | ||
$ tar -czf ../backup/seminareFoxtomDe_$(date -I).tar.gz moodle | $ tar -czf ../backup/seminareFoxtomDe_$(date -I).tar.gz moodle | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Zeile 37: | Zeile 37: | ||
=== Archiv entpacken === | === Archiv entpacken === | ||
<syntaxhighlight lang="bash" line> | <syntaxhighlight lang="bash" highlight="1" line> | ||
$ tar -xf moodle-latest-404.tgz | $ tar -xf moodle-latest-404.tgz | ||
</syntaxhighlight> | </syntaxhighlight> | ||
=== Daten übertragen === | === Daten übertragen === | ||
<syntaxhighlight lang="bash" line> | <syntaxhighlight lang="bash" highlight="1" line> | ||
$ mv moodle moodle.bak | $ mv moodle moodle.bak | ||
$ cp -au moodle.bak/question/type/multichoiceset/ moodle/question/type/ | $ cp -au moodle.bak/question/type/multichoiceset/ moodle/question/type/ | ||
Zeile 53: | Zeile 53: | ||
=== Zugriffsrechte korrigieren === | === Zugriffsrechte korrigieren === | ||
<syntaxhighlight lang="bash" line> | <syntaxhighlight lang="bash" highlight="1" line> | ||
# chown -Rc web76:client1 moodle | # chown -Rc web76:client1 moodle | ||
</syntaxhighlight> | </syntaxhighlight> | ||
=== Einstiegspunkt ändern === | === Einstiegspunkt ändern === | ||
=== Konfiguration anpassen === | === Konfiguration anpassen === |
Version vom 15. Oktober 2024, 13:46 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