Moodle/Update: Unterschied zwischen den Versionen
Zeile 34: | Zeile 34: | ||
<syntaxhighlight lang="bash" line> | <syntaxhighlight lang="bash" line> | ||
cp -au moodle.bak/question/type/multichoiceset/ moodle/question/type/ | cp -au moodle.bak/question/type/multichoiceset/ moodle/question/type/ | ||
cp -au moodle.bak/course/format/tiles moodle/course/format/ | cp -au moodle.bak/course/format/tiles moodle/course/format/ | ||
cp -au moodle.bak/config.php moodle | cp -au moodle.bak/config.php moodle | ||
cp -au moodle.bak/blocks/featuredcourses moodle/blocks/ | cp -au moodle.bak/blocks/featuredcourses moodle/blocks/ | ||
cp -au moodle.bak/mod/ moodle/ | cp -au moodle.bak/mod/ moodle/ | ||
cp -au moodle.bak/theme/stream/ moodle/theme/ | cp -au moodle.bak/theme/stream/ moodle/theme/ | ||
</syntaxhighlight> | |||
sudo chown -Rc web76:client1 moodle | |||
=== Einstiegspunkt ändern === | === Einstiegspunkt ändern === |
Version vom 17. Juni 2024, 09:05 Uhr
Moodle Update - Software-Aktualisierung durchführen
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
# mysqldump c1moodleFoxtomDe > backup/c1moodleFoxtomDe_$(date -I).sql
Dateisystem
$ tar -czf ../backup/seminareFoxtomDe_$(date -I).tar.gz moodle
Durchführung
mv moodle moodle.bak
Archiv entpacken
tar -xf moodle-latest-404.tgz
Daten übertragen
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/
sudo chown -Rc web76:client1 moodle
Einstiegspunkt ändern
Konfiguration anpassen
Erweiterungen aktualisieren
Update-Skript
Anhang
Siehe auch
Dokumentation
Links
Projekt
Weblinks