how to restore moodle course in another installation

by Damion Price 3 min read

Go to 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

Restoring a course backup
  1. Go to Settings > Front page settings > Restore or Settings > Course administration > Restore.
  2. Upload the backup file or choose a file in the course backup area or user private backup area and click Restore.
  3. Confirm - Check that everything is as required then click the Continue button.
Jul 5, 2012

Full Answer

How do I restore a Moodle course?

Feb 03, 2021 · Upload the backup file or choose a file in the course backup area or user private backup area and click Restore. 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 ...

How do I move a Moodle course backup to another site?

Aug 29, 2017 · I have inherited a tar.gz that is a supposed backup of a moodle installation that got deleted (the whole VM before I got here). The tar.gz contains directories "moodle" , "moodledata" and the file "moodle.database.mysql".. There are two other tar.gz files here that one that contains the contents of the "/var/www/html/moodle/" directory and one contains the …

How do I restore my course from a backup?

Feb 19, 2021 · Attempting to restore a course to an older version of Moodle than the one the course was backed up on can result in the restore process failing to complete. To ensure a successful restore, make sure that the version of Moodle you are restoring the course to is the same, or newer, than the one the course was backed up on.

Why are files not included in Moodle course backups?

Aug 10, 2021 · Upload the new zip file (example: mycourse_new.zip) and restore from that. If the backup file is guaranteed to be correct, check paths to external files (zip, unzip). Incorrect settings also lead to this error message (see the Using Moodle forum discussion moodle.xml not found in root... and MDL-14812 ).

How do I backup and restore from Moodle?

To ensure this:Unzip the backup file of the course (example: mycourse. zip)Once the file is unzipped, open the folder (example: mycourse).Select the folders within the mycourse folder AND the moodle. xml file and create a zip of those item (example: mycourse_new. ... Upload the new zip file (example: mycourse_new.Aug 10, 2021

How do I restore my Moodle database?

Moodle uploaded or created files. Moodle database - MySQL, Progres or other....Restore with phpMyAdminOpen the database to restore.Click the SQL tab.On the "SQL"-page , unclick the show query here again.Browse to your backup of the database.Click Go.Nov 25, 2018

How do I access old classes on Moodle?

To access an archived course, click on the link within the Kiosk. To view all courses, click "Show all X courses" where X is the number of hidden courses. Any gray links indicate courses that are hidden from student view.

Can I export a Moodle course?

Exporting Content From Moodle From within a course, from the course Administration menu, choose Backup. Select whether to export as a Common Cartridge or a native Moodle file. Follow the succession of screens, to complete the process.

Does Moodle have backups?

A site backup allows a site administrator to save everything associated with a moodle site. These backups can be restored to bring a site back to the point in time when the backup was made.Apr 16, 2021

How do I move Moodle from one server to another?

Recommended methodTurn on maintenance mode. ... Backup the Moodle database on the old server. ... Restore the database backup to the new server. ... Copy moodledata from the old server to the new server. ... Copy the Moodle code from the old server to the new server. ... Update config. ... Test the copied site.More items...•Jan 12, 2020

How do I search for a course on Moodle?

You can also look for your course in the main section of the Moodle homepage, underneath the “Search courses” box, in the “My courses” section. After the active courses, you will see your inactive courses listed here in approximately reverse chronological order.Jul 22, 2013

How do I Backup a Moodle course?

Backup Your Moodle CourseLog in to Moodle and click on the course you want to back up.Under Administration, click Backup.On the Course backup screen, leave all checkboxes checked to backup both your course materials and student work. ... On the confirmation screen, click Continue.More items...

How do I Backup my Moodle?

First sign into your Moodle administration panel:Once you are logged in you should click on the Site home option on the left:Then, in Administration under the Front page setting drop-down menu, you have to choose the Backup option:There, you will see the 5-stage backup process.More items...

How do I Backup a user in Moodle?

Go into the course. Click the Backup link either in the gear menu or the Administration block (depending upon the theme). Initial settings - Select activities, blocks, filters and other items as required then click the Next button.Aug 19, 2021

How do I import a course into Moodle?

InstructionsGo to the Moodle page for the new course and click the "Course Management" gear icon in the top menu bar.Click "Import".On the next screen, you will search for the course you want to import from. ... Select the course you want and click Continue.Choose what Moodle components you want to import.More items...

How do I backup my Moodle?

So how can you make a backup of your Moodle course?Click the gear menu and then select “backup.”Use the checkboxes to decide what you would like to bring over with your copy of the course. ... Experienced Moodlers can click the “jump to the final step” button, or if you prefer click “next”.More items...•Nov 10, 2017

How do I reuse a course on Moodle?

To copy content from another instructor's course in the legacy version of Moodle: The instructor of the course in the legacy Moodle will need to Backup a Moodle Course by creating and downloading a Moodle Backup file (. mbz) and send the created backup file to the course copier. Then the copier can Restore Moodle (.

How do I copy a course from one Moodle to another?

Prepare Items to CopyOpen the course you will copy item(s) from. ... In the menu bar at the top of your course page, select Turn Editing On (green pencil icon ). ... Scroll to the bottom of the course page and click + Add topics to create a new Section. ... For each item you wish to copy, click Edit, then select Duplicate.More items...

How do I backup and restore a Moodle course?

A course backup file (. mbz) may be restored into any of your existing Moodle course sites: Go to the main page of your course, click on the gear icon to the right of the course title, and then click Restore (if you have an empty course to restore into).Jan 14, 2022

Where does Moodle store course backups?

About the backup file course_files folder: contains all files you uploaded to your Moodle course. moddata folder: contains all uploaded student files associated with Moodle activities, such as assignments.

Does Moodle have backups?

A site backup allows a site administrator to save everything associated with a moodle site. These backups can be restored to bring a site back to the point in time when the backup was made.Apr 16, 2021

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.

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

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.

Restore via CLI for administrators

New feature#N#in Moodle 3.10! In Moodle 3.10 onwards, site administrators can restore large backup files using a CLI script.

What are the pros and cons of course versus site backups?

Site backups are recommended in order to have all data saved with the best confidence and the shortest recovery time.

Why is my automated course backup much smaller in size than my manual course backup?

This is an intentional design decision. Because of the way files are stored in Moodle 2.x, there is no need to include the files in the backup if you are planning to restore them to the same Moodle site. Leaving them out saves huge amounts of disk space and makes the backup procedure much faster.

What data is not contained in course backups?

By selecting all the options when setting up the backup you can include almost all the data in the course. However you should be aware of the fact that some things are not backed up:

How can I backup or restore a very large course?

See Backup via CLI in Course backup and Restore via CLI in Course restore (new in 3.10 onwards).

The process ends with: "Error: An error occurred deleting old backup data". What should I do?

This part of the backup (or restore) procedure tries to delete old info, used in previous executions, performing the following tasks:

The process ends with: "XML error: not well-formed (invalid token) at line YYYY". What can I do?

This problem can appear at any point in the restore process. It's caused when the XML parser detects something incorrect in the backup file that prevent correct operation. Usually, it's caused by some "illegal" characters added in the original course due to some copy/paste of text containing them (control characters, or invalid sequences...).

The process ends with: "moodle xml not found at root level of zip file". What can I do?

If you are restoring from a zip file backup make sure the moodle.xml file is at the root level. To ensure this:

What are the pros and cons of course versus site backups?

Site backups are recommended in order to have all data saved with the best confidence and the shortest recovery time.

Why is my automated course backup much smaller in size than my manual course backup?

This is an intentional design decision. Because of the way files are stored in Moodle 2.x, there is no need to include the files in the backup if you are planning to restore them to the same Moodle site. Leaving them out saves huge amounts of disk space and makes the backup procedure much faster.

What data is not contained in course backups?

By selecting all the options when setting up the backup you can include almost all the data in the course. However you should be aware of the fact that some things are not backed up:

How do I fix backups that lack the student log and participation data?

In Site administration > Courses > Backups > General backup defaults, there is a setting for "Include logs." By default, this is off.

How do I fix backups that lack the student grade history?

In Site administration > Courses > Backups > General backup defaults, there is a setting for "Include histories." By default, this is off.

How can I backup or restore a very large course?

See Backup via CLI in Course backup and Restore via CLI in Course restore (new in 3.10 onwards).

The process ends with: "Error: An error occurred deleting old backup data". What should I do?

This part of the backup (or restore) procedure tries to delete old info, used in previous executions, performing the following tasks:

Creating a Course Backup File

Course backup files provide a way to move all of the contents of a Moodle course to a new location. The file is similar to a .zip archive file, and is a way to save the information from an entire course - including student data - in one compressed package.

Restoring a Course Backup File to an Empty Course Site

The instructions below are for restoring a course using a previously created backup file. To generate a backup file, follow the instructions in Creating A Course Backup File.

Moving Materials to Another Five College Moodle Server

If you'll be teaching a course at another Five College campus and wish to transfer materials from a Mount Holyoke Moodle course site to a Moodle course site at Amherst, Hampshire, UMass or Smith, some things to keep in mind: