Restoring a course backup
A course backup file (.mbz) may be restored from within any existing course for which you have permission. During the restore process, you will be given the option to restore as a new course or into an existing course. See the screencast Course restore.
- With the Boost theme click the gear menu and then 'Restore' Otherwise, go to Site administration > Front page settings > Restore (if you have front page permissions) or Administration > Course administration > Restore (if you have an empty course to restore into.)
- Upload the backup file or choose a file in the course backup area or user private backup area and click Restore
- Confirm - Check that everything is as required then click the Continue button
- Destination - Choose whether the course should be restored as a new course or into an existing course then click the Continue button
- Settings - Select activities, blocks, filters and possibly other items as required then click the Next button
- Schema - Select/deselect specific items and amend the course name, short name and start date if necessary then click the Next button
- Review - Check that everything is as required, using the Previous button if necessary, then click the 'Perform restore' button
- Complete - Click the continue button
- If you are restoring a course with user data (forum posts for example) then be careful when setting the course start date as all data will display within the same timeframe but from the new start date. So if your course originally began in 2010 and participants posted in 2012, then if you restore your new course with a start date of 2014, these forum posts will display with a date of 2016, ie, 2 years after the original course start date. See MDL-9367.
- If your new course has fewer sections than the course you are restoring, the extra sections will appear as "orphaned activities". Increase the number of sections in the new course to make them visible.
- If you are restoring a course from a different Moodle site and you obtain the error message "Trying to restore user (admin) from backup file will cause conflict", you can enable the setting 'Allow admin conflict resolution' in Site admin > Courses > Backups > General import defaults
- In Moodle 3.3.2 onwards, when restoring a course containing calendar events from activities e.g. assignment due dates, these events will appear in the calendar a short while after restoring the course. The events are added to the calendar via a cron task. Restoring multiple courses will result in queued tasks with a possible delay before events appear in the calendar. (See MDL-58906 for further details.)
Restoring from course and category management screens
Users with permission to access Site administration > Courses > Manage courses and categories or Site administration > Courses > Manage courses and categories > (Category name) can restore courses from here:
General restore defaults
in Moodle 3.3! An administrator can set defaults and lock selected restore settings in 'General restore defaults' in the Site administration. If a setting is locked, then it can not be changed when restoring a course.
Different defaults may be set for restoring and merging into another course and for restoring and deleting the course contents.
Course restore capabilities
- Create users on restore
- Configure restore options
- Restore activities
- Restore courses
- Restore sections
- Restore from files targeted as hub
- Restore from files targeted as import
- Roll activity configuration dates on restore
- Upload files to backup areas
- Restore user data
- Restore courses from automated backups