How to Backup and Restore a Moodle Course - A Guide for Intermediate Moodle Administrators
Backing up and restoring courses is an essential skill for any Moodle administrator, ensuring data integrity and facilitating seamless transfers between different Moodle instances.
This guide will walk you through the process of creating a course backup on one Moodle system and restoring it onto another. Additionally, we’ll address common issues that may arise during the restore process, such as missing plugins or incomplete functionality.
Creating a Backup of a Moodle Course
Step 1: Access the Course
To begin, log in to your Moodle account and navigate to the course you wish to export. Ensure you have administrative privileges to perform this action.
Step 2: Initiate the Backup Process
Once inside the course:
- Click on "More" in the course navigation menu.
- Select "Course reuse" from the dropdown menu.
- Choose the "Backup" option.
Step 3: Configure Backup Settings
The backup settings page allows you to customise what elements of the course are included in the backup file. By default, all settings and activities are selected. It’s recommended to include everything unless you have specific reasons not to. After reviewing the settings:
- Click "Perform backup" to start the process.
Step 4: Complete the Backup
Once the backup is complete:
- Click "Continue".
- You’ll be directed to the course backup area, where you can download the backup file, which will have an
.mbzextension.
This file contains all the necessary data to recreate the course on another Moodle instance.
Restoring a Course to a New Moodle System
Step 1: Prepare the New Course Shell
Before importing the backed-up course, ensure you have a blank course shell ready on the new Moodle system. If not, request one from your Moodle administrator.
Step 2: Access the Restore Function
- Log in to the new Moodle system and navigate to the blank course shell.
- Turn "Edit mode" on.
- In the course navigation, click on "More".
- Select "Course reuse" from the dropdown menu.
- Choose the "Restore" option.
Step 3: Upload the Backup File
On the "Import a backup file" page:
- Click "Choose a file" to browse and select the
.mbzfile you downloaded earlier, or drag and drop the file into the designated area. - Click "Restore" to proceed.
Step 4: Configure Restore Settings
After uploading the file:
- Review the backup details and click "Continue".
- Choose "Merge the backup course into this course" to add the content to the existing course shell.
- Click "Continue" again.
Step 5: Finalize the Restore Process
- Select the specific items you wish to restore, or leave all items selected for a full restore.
- Click "Next", followed by "Perform restore".
- Once the process is complete, click "Continue" to view the imported content in the new course.
Troubleshooting Missing Plugins
If certain features of the restored course do not function as expected, it could be due to missing plugins on the target Moodle system. Moodle relies heavily on plugins for extended functionality, and if these are absent, the course may not work correctly.
Identifying Missing Plugins
When restoring a course, Moodle provides warnings about any required plugins that are not installed on the target system. These warnings typically appear during the restore configuration step. Pay close attention to these messages and note down the names of the missing plugins.
Installing Missing Plugins
To resolve plugin-related issues:
- Visit the Moodle Plugins Directory and search for the missing plugins by name.
- Download and install the required plugins on the target Moodle system via Site Administration > Plugins > Install plugins.
- After installation, re-run the restore process to ensure compatibility.
Verifying Course Integrity Post-Restore
Even after successfully restoring a course, some elements might still fail to function properly. Below are key areas to review if the course does not work 100%:
1. Check Activity Settings
Some activities (e.g., quizzes, assignments) may require additional configurations or permissions that were not included in the backup. Verify that:
- All activity settings match those of the original course.
- Any external integrations (e.g., LTI tools) are correctly configured.
2. Validate Permissions and Roles
Ensure that user roles and capabilities are appropriately set up in the new Moodle environment. Misconfigured permissions can lead to inaccessible content or restricted functionalities.
3. Review Custom Themes and Templates
If the original course used custom themes or templates, verify whether they are compatible with the target Moodle version. Incompatibilities may cause visual discrepancies or broken layouts.
4. Examine Gradebook Configuration
The gradebook setup is often complex and may need manual adjustments after restoration. Double-check:
- Whether all grade categories and calculations are intact.
- That grading scales and outcomes are correctly mapped.
5. Test External Links and Resources
Courses frequently include links to external resources. Confirm that these links remain valid and accessible post-restoration.
Managing Backup Files
Regularly cleaning up unused backup files helps optimise server storage space. Follow these steps to delete unnecessary backups:
Deleting Backup Files from a Course
- Navigate to the course containing the backup files.
- Go to "More" > "Course reuse" > "Restore".
- Click "Manage backup files".
- Select the backup files you wish to delete and confirm deletion.
Removing Automated Backup Files Stored Externally
If your Moodle site stores automated backups in an external directory:
- Access the backup directory on your server.
- Identify and delete backup files associated with deleted courses.
- Maintain a secure archive of important backups to prevent accidental loss.
Refer to the official Moodle documentation on Course backup for further guidance.
Further notes...
Backing up and restoring Moodle courses is a critical task for administrators aiming to preserve educational content and facilitate smooth transitions between systems.
Remember, thorough testing and validation are essential after restoring a course. Address any discrepancies promptly to guarantee that all aspects of the course function seamlessly for both instructors and learners.
