Zum Inhalt springen

Moodle/Update: Unterschied zwischen den Versionen

Aus Foxwiki
Markierung: Zurückgesetzt
Keine Bearbeitungszusammenfassung
Markierung: Manuelle Zurücksetzung
Zeile 8: Zeile 8:
[[File:moodleUpdateMessage.png|800px|link=https://seminare.foxtom.de/admin/index.php|seminare.foxtom.de/admin]]
[[File:moodleUpdateMessage.png|800px|link=https://seminare.foxtom.de/admin/index.php|seminare.foxtom.de/admin]]


=== Datensicherung ===
==== Konfiguration auslesen ====
==== Konfiguration auslesen ====
<syntaxhighlight lang="bash" highlight="1" line>
<syntaxhighlight lang="bash" highlight="1" line>
grep '$CFG->db' moodle/config.php
grep '$CFG->db' moodle/config.php
  $CFG->dbname    = 'database';
  $CFG->dbname    = 'database';
  $CFG->dbuser    = 'user';
  $CFG->dbuser    = 'UserName';
  $CFG->dbpass    = 'password';
  $CFG->dbpass    = 'Password';
</syntaxhighlight>
</syntaxhighlight>


In Variablen speichern
<syntaxhighlight lang="bash" highlight="1-3" line>
<syntaxhighlight lang="bash" highlight="1-3" line>
export database="database"
export database="database"
export user="user"
export UserName="UserName"
export password="password"
export Password="Password"
</syntaxhighlight>
</syntaxhighlight>


== Datensicherung ==
==== Datenbank ====
=== Datenbank ===
<syntaxhighlight lang="bash" highlight="1" line>
<syntaxhighlight lang="bash" highlight="1" line>
mysqldump --user="$user" --password="$password" $database | gzip > ../backup/"$database"_$(date -I).sql.gz
mysqldump --user="$UserName" --password="$Password" $database | gzip > ../backup/"$database"_$(date -I).sql.gz
</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
tar -czf ../backup/seminareFoxtomDe_$(date -I).tar.gz moodle

Version vom 27. Januar 2025, 12:31 Uhr

Moodle Update - Software-Aktualisierung

Vorbereitung

Version

Aktuelle und neue Version ermitteln

https://seminare.foxtom.de/admin/index.php

seminare.foxtom.de/admin

Datensicherung

Konfiguration auslesen

grep '$CFG->db' moodle/config.php
 $CFG->dbname    = 'database';
 $CFG->dbuser    = 'UserName';
 $CFG->dbpass    = 'Password';
export database="database"
export UserName="UserName"
export Password="Password"

Datenbank

mysqldump --user="$UserName" --password="$Password" $database | gzip > ../backup/"$database"_$(date -I).sql.gz

Dateisystem

tar -czf ../backup/seminareFoxtomDe_$(date -I).tar.gz moodle

Durchführung

Download

wget https://download.moodle.org/download.php/direct/stable405/moodle-latest-405.zip

Archiv entpacken

unzip moodle-latest-405.zip

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

sudo chown -Rc web76:client1 moodle

Einstiegspunkt ändern

Konfiguration anpassen

Erweiterungen aktualisieren

https://seminare.foxtom.de/admin/plugins.php

Update-Skript

Anhang

Siehe auch

Dokumentation

Links

Projekt
Weblinks
  1. https://docs.moodle.org/405/de/Aktualisierung_von_Moodle