Minimierung der Fragensammlung bei Kurssicherung und -wiederherstellung

Aus MoodleDocs
Wechseln zu:Navigation, Suche

Vorlage:Zum Überarbeiten



Wenn Sie einen Kurs sichern und wiederherstellen, werden oft große Fragensammlungen mitgesichert, die viele Fragen enthalten, die gar nicht im Kurs oder Test verwendet werden. Das kann zum Problem werden, wenn die Fragensammlung der Moodle-Site mehr als 1000 Fragen oder mehr als 500 MB groß ist. Dann können bei der Kurssicherung und -wiederherstellung Fehler wegen eines Timeouts oder anderer technischer Probleme auftreten. Das Teilen von Kursen in einem Hub ist ebenfalls schwierig, da große Fragensammlungen mit nicht verwendeten Fragen eingeschlossen sind, die das Teilen der Sicherungen erschweren und Trainer/innen verwirren, die mit den geteilten Kursen arbeiten.

Ursprünglich wurde die Fragensammlung eines Kurses und der darüber liegenden Kontexte immer in die Kurssicherung einbezogen. Im Jahr 2007 wurde der Bugtracker-Eintrag MDL-12403 erstellt, um Trainer/innen und Administrator/innen zu ermöglichen, bei der Kurssicherung nur die Fragen einzubeziehen, die tatsächlich im Kurs verwendet werden. Die Diskussionen zu diesem Tracker-Eintrag zeigten, dass die Lösung dieses Problems schwierig ist. Im Jahr 2013 wurde bei der Konfiguration der Kurssicherung eine Checkbox hinzugefügt, um die Fragensammlung komplett aus der Sicherung herauszunehmen. So war es ab Moodle 2.7 möglich, bei der Kurssicherung ein "Alles" oder "Nichts" in Bezug auf die Fragensammlung auszuwählen. was added to the Backup procedure to completely remove the question bank in a backup file. Thus from Moodle 2.7, it was possible to do an all-or-nothing inclusion or exclusion of the question bank. When the checkbox to exclude the question bank is checked, all quizzes are also removed from the backup.

This did not solve the original issue so a separate Tracker issue was made concerning how to minimize or select the questions included in a backup (MDL-41924). As of Moodle 2.9, this issue is still open. As teachers and admins need to share questions and share courses which often include quizzes (one of the most popular activities in Moodle), it is still possible to minimize the questions, though doing it manually is complicated. The following workaround was successfully done in Moodle 2.9.1, and the resulting course backup file was restored on a Moodle 2.8.5 site.

This workaround strategy is based on the design of the question bank which only includes questions in a backup that are in the same category or a higher level category. Thus System Level questions are included in every backup on the site. Note that Moodle uses the word "category" in two ways which can be confusing. A "category" can refer to a group of courses (Course Category) or a group of questions (question bank category). In this section, we usually use "category" to mean a group of questions in the question bank. These categories are also called "contexts".

Workaround to Minimize Questions in a Course Backup

  1. Move all questions from System Level and other upper level Categories in your question bank to lower category levels--down to course level categories. (this makes it difficult to view and share, but is necessary).
  2. Move the course (or a copy of the course) to a temporary Course Category somewhere on your site where there are no other courses.
  3. Make a backup of your course and restore this backup in the same Course Category. (Moodle will automatically push all upper level category questions into course level categories--you will see this happen on the screen).
  4. Go into the newly restored course and open the Question Bank. You will see all questions are at the course level.
  5. Prune (delete) all unneeded questions in your newly restored course. Do not worry about deleting here, because you are only deleting course level copies of the questions. The original questions on your site are not affected.
  6. As you delete groups of questions, Moodle will list and confirm the questions you wish to delete. If you mistakenly try to delete a question that is being used in your course, Moodle will mark that one with an asterisk. Then cancel the deletion, and try selecting again. Note those questions and cancel the deletion and choose only unneeded questions. (in the case of thousands of questions, this deletion process can take a long time).
  7. After you have minimized the questions manually by deletion at these course level categories, you can now make a another backup file and when you restore it, only the remaining questions you selected will be included.

In addition, you can encourage Moodle HQ to tackle this issue by voting, watching, and commenting in these two tracker issues: MDL-41924 and MDL-12403.