2

Backing up and Restoring a Course

Margarita Berezyanskaya

Last Update 20 giorni fa

A very important skill for an editing teacher is knowing how to create a course backup. Using the backup function allows teachers to retain a copy of a course that they have customized for future reuse. The backup file can be downloaded and stored safely on the teacher's own computer. Because Moodle is an open-source learning management system widely used in education and training, teachers can restore a course for reuse in other Moodle environments.


Teachers developing a course should familiarize themselves with the backup and restore function. This feature allows them to create backups at regular intervals and revert to a previous version if needed.


Backing up a Course

These instructions explain how to back up a course with students and course data.


1. Open your course. On the Course navigation menu, click on the More option.



2. In the drop-down menu, click on Course reuse.



Note: The Course reuse screen appears.

3. Click on the Backup option.


Note: The Backup screen appears.


4. Deselect items in the list that you do not need in the backup.

Note: Consider this example, as it does not back up student information or activity.



5. Click the Next button.


6. On the Schema settings screen, all items are selected for backup; however, user data from previous user activity is locked and not included.



7. Click on the Next button.



Note: The Confirmation and review screen appears. The output filename is displayed.



Note: Instructors can change the filename for improved readability. In this example, it is changed to backup_CLB4_Beverly_Sept_09_2025.mbz



8. Scroll down and click the Perform backup button.



Note: There may be a warning message about The backup process is pending, which indicates that it may take some time to complete.  Do not click on the Return to course button. 

9. Click on the Continue button.


The Restore Course page appears.


Your new backup file will appear in the User private backup area section. If there are multiple backup files, locate your new file by the Filename or Time columns.


10. Click the Download link next to your backup file to save a copy on your computer. It is good practice to keep backups of important work in more than one location.


 

Restoring a Course

It is necessary to have a Moodle backup file to restore a course. The extension for this type of file is .mbz. See the Backing up a Course section of this article for step-by-step instructions on creating a course backup.


1. Open your course. On the Course navigation menu, click on the More option.



2. In the drop-down menu, click on Course reuse.



3. Click on the Restore option.


The Restore page appears.


4. Locate (or upload) the target backup file and click the Restore link.




5. The Confirm page appears, displaying all course details. Scroll down and click the Continue button.



6. The Destination page appears. Select Delete the contents of this course and then restore unless you want to add new content to the existing course.



Teachers who are can edit more than one course will have the option to restore the backup file into those courses. Restoring in these courses includes the same options of deleting or adding it to existing content in the target course.


7. Click on the Continue button.


8. On the Settings screen, click Next to retain the same settings as the backup.


9. On the Schema screen, scroll down and click on the Next button.



Note: By default, all items in the backup file are selected. Teachers can deselect the checkboxes if they do not want that content restored.



10. On the Review screen, review the content being restored and then click the Perform restore button.


11. A confirmation message appears indicating that the restore process was successful.


12. Click the Continue button to complete the course restore.

Resources