Note: This documentation is for Moodle 2.7. For up-to-date documentation see Course restore.

Course restore: Difference between revisions

From MoodleDocs
m (→‎See also: link edit)
(restoring a course, screenshots and role mappings info moved from Backup restore)
Line 1: Line 1:
{{Course admin}}
{{Course admin}}
Courses can be restored from a backup made by Moodle.  Course backups are usually stored in the '''backupdata''' folder within the [[Files|course files]] folder. There is a link next to every course backup that says restore.  Each version of Moodle has its own slightly different process for restoring.  Generally speaking a backup may be restored several waysIt can
Courses can be restored from a backup made by Moodle.  Course backups are usually stored in the '''backupdata''' folder within the [[Files|course files]] folder. There is a restore link next to every course backup.   
*Copy over the data in any course, or
*Add the backup to any course, or 
*Create a new course that is a duplicate,
*Offers option to include student data and/or course files. 


The backup and restore process is a common way of moving or, copying specific courses from one Moodle to another.  
The backup and restore process is a common way of moving or, copying specific courses from one Moodle to another.


{{Moodle 1.6}}Version 1.6 and later offers more options in the backup and restore process. [[Backup restore]] has a more detailed description of the 1.6 process.  It is possible to backup and/or restore specific course resources and activities. For example, a teacher can backup the entire course, then restore only Lesson 1 with student data, Lesson 4 without student data and a forum with student data, to a new or existing course. 
==Restoring a course==
[[Image:Course_restore_s1.jpg|thumb|The backupdata folder]][[Image:Course_restore_s1b.jpg|thumb|Restoring a course - page 1]][[Image:Course_restore_s2.jpg|thumb|Restoring a course - page 2]][[Image:Course_restore_s3.jpg|thumb|Restoring a course - page 3]]
To restore a course from a backup file:


This selective restore process is similar to the [[Import course data|Import feature]] in the course administration block.  
#Either upload a backup zip file to your course files area or click Restore in the Administration block to access the backupdata folder.
#Click the Restore link opposite the file you want to restore.
#On the next page, click Yes to the question "Do you want to continue?" to start the restore process.
#Click the Continue button at the bottom of the next page, listing details of the backup.
#On the next page, select whether you want to restore to the existing course, adding data to it or deleting it first. If you have permission to restore to a new course, the restore page will contain additional options for setting the new course category, short name, full name, and start date.
#Choose which activities you want to restore and whether to include user data.
#Select course users if you are including user data.
#Select appropriate role mappings. The options depend upon the roles you are allowed to assign. By default, teachers are only allowed to assign the roles of non-editing teacher, student, and guest.
#Click the Continue button.
#On the next page, click the "Restore this course now!" button.
#On the next page, the progress of the restore is displayed with a report if it was successful. Click the Continue button.
 
==Role mappings==
{{Moodle 1.7}}The procedure of restoring a 1.6 or older course to a 1.7 site requires additional role mapping information to be entered (on page 3). Since Moodle 1.7 has a dynamic roles system, it is possible to map the old roles (i.e. editing teachers, non-editing teachers and students) onto any new roles. By default, Moodle 1.7 looks for legacy roles to map intelligently, for example students in 1.6 are mapped onto the 1.7 legacy student role.
 
When restoring a 1.7 course to a 1.7 site, Moodle compares the role shortname string and pre-selects the same for you. As a result, if you are restoring within the same site, you don't have to worry about selecting what roles to map onto.
 
Role options are determined by what you can assign in the current context (course or site). For example, if you have the teacher role in a 1.7 course, you will not be able to map students onto admins in the restored course. There is also an option to create new roles to map onto.


==See also==
==See also==

Revision as of 15:22, 31 July 2008

Template:Course admin Courses can be restored from a backup made by Moodle. Course backups are usually stored in the backupdata folder within the course files folder. There is a restore link next to every course backup.

The backup and restore process is a common way of moving or, copying specific courses from one Moodle to another.

Restoring a course

The backupdata folder
Restoring a course - page 1
Restoring a course - page 2
Restoring a course - page 3

To restore a course from a backup file:

  1. Either upload a backup zip file to your course files area or click Restore in the Administration block to access the backupdata folder.
  2. Click the Restore link opposite the file you want to restore.
  3. On the next page, click Yes to the question "Do you want to continue?" to start the restore process.
  4. Click the Continue button at the bottom of the next page, listing details of the backup.
  5. On the next page, select whether you want to restore to the existing course, adding data to it or deleting it first. If you have permission to restore to a new course, the restore page will contain additional options for setting the new course category, short name, full name, and start date.
  6. Choose which activities you want to restore and whether to include user data.
  7. Select course users if you are including user data.
  8. Select appropriate role mappings. The options depend upon the roles you are allowed to assign. By default, teachers are only allowed to assign the roles of non-editing teacher, student, and guest.
  9. Click the Continue button.
  10. On the next page, click the "Restore this course now!" button.
  11. On the next page, the progress of the restore is displayed with a report if it was successful. Click the Continue button.

Role mappings

Template:Moodle 1.7The procedure of restoring a 1.6 or older course to a 1.7 site requires additional role mapping information to be entered (on page 3). Since Moodle 1.7 has a dynamic roles system, it is possible to map the old roles (i.e. editing teachers, non-editing teachers and students) onto any new roles. By default, Moodle 1.7 looks for legacy roles to map intelligently, for example students in 1.6 are mapped onto the 1.7 legacy student role.

When restoring a 1.7 course to a 1.7 site, Moodle compares the role shortname string and pre-selects the same for you. As a result, if you are restoring within the same site, you don't have to worry about selecting what roles to map onto.

Role options are determined by what you can assign in the current context (course or site). For example, if you have the teacher role in a 1.7 course, you will not be able to map students onto admins in the restored course. There is also an option to create new roles to map onto.

See also