Note: You are currently viewing documentation for Moodle 1.9. Up-to-date documentation for the latest stable version is available here: Backup restore.

Backup restore: Difference between revisions

From MoodleDocs
Line 15: Line 15:


==Restore==
==Restore==
[[Image:Restore icon link.JPG]]Selecting the restore icon, will give show a list of files which can be restored in the backup directory.  Select the file by clicking on restore link.
[[Image:Course_restore_s1.jpg|frame|center|Selecting the restore icon,([[Image:Restore icon link.JPG]]) will show a list of files which can be restored in the backup directory.  Select the file by clicking on the restore link.]]
[[Image:Course_restore_s1.jpg]]
 
*Screen 1 confirms the file you selected to restore and asks if you want to continue or cancel
[[Image:Course_restore_s1b.jpg|frame|center|*Screen 1 confirms the file you selected to restore and asks if you want to continue or cancel]]
[[Image:Course_restore_s1b.jpg]]
 
*Screen 2 shows what is available in the file you have selected to restore
[[Image:Course_restore_s2.jpg|frame|center|*Screen 2 shows what is available in the file you have selected to restore]]
[[Image:Course_restore_s2.jpg]]
 
*Screen 3 gives many options for restoring.
 
** Restore to option: new course, copy over a course or add to a course.
[[Image:Course_restore_s3.jpg|frame|center|*Screen 3 gives many options for restoring.<br/>
**Administrators and Course Creators options in 1.6 are:
<span><ul>
***Restore to an existing course either adding to the course (keeping existing data) or deleting all existing data; or
<li>Restore to: new course, copy over a course or add to a course.</li>
***The creation of a new course using the data in the backup file being restored.
<li>Include: This section allows you to select the individual elements you wish to restore.</li>
**Editing Teachers options in 1.6 are:
<li>User data: This must be included if you wish to retain student files.</li>
***Restore to an existing course either adding to the course (keeping existing data) or deleting all existing data.
<li>Users: This option will transfer enrolled users into the course. This option must be selected if you wish to retain the user data.</li>
** Individual activity options: check off those parts of the course to be restored
<li>Course files: These are image and resource files</li>
***Inclues option to restore student data for each part
</ul><br/>
** Restore course files option - these are image or resource files
**Administrators and Course Creators options in 1.6 are:<br/>
[[Image:Course_restore_s3.jpg]]
Restore to an existing course either by adding to the course (keeping existing data) or deleting all existing data; or through the creation of a new course.<br/>
*Screen 4 - Restore this course now button
**Editing Teachers options in 1.6 are:<br/>
*Screen 5 - Reports on what was successfully restored
Restore to an existing course either adding to the course (keeping existing data) or deleting all existing data.<br/>
</span>]]
 
[[Image:Course_restore_s4.jpg|frame|center|*Screen 4 - Restore this course now button]]
[[Image:Course_restore_s5.jpg|frame|center|*Screen 5 - Reports on what was successfully restored. Pressing continue will take you to the newly created course]]


==Role mappings==
==Role mappings==

Revision as of 22:50, 11 July 2007

Moodle has a course backup and restore process. Each successive version of Moodle has offered more options in this process. Many Moodle site administrators turn on an automated backup function, which does a full course backup on a schedule. The on demand backup and restore functions can be found in the administrative block of a course.

An administrator or user with appropriate permissions can use the backup restore functions to create, transfer or restore parts of an existing course or a whole course.

Backup

File:Backup icon link.JPGSelecting backup icon, will give the user with the correct privileges 3 screens.

  • Screen 1 provides options to select which activities and resources should be backed up. This screen also includes an option to include student data for each of these activities and resources. The bottom of screen 1 asks how to handled meta courses, users, log files, user files and course files. The continue button starts the backup process.

Course backup.jpg

  • Screen 2 suggests a name for the backup file, which can be edited, informs the user what is actually going to be backed up. For example, the number of users and course files and which modules.

Course backup s2.jpg

  • Screen 3 displays the progress of the backup, reports if it was successful and has a continue button. Any errors or corrupted files will be reported on this screen. After clicking continue you will be taken to a file manager screen where you can download the backup.

Course backup s3.jpg

Restore

Selecting the restore icon,(Restore icon link.JPG) will show a list of files which can be restored in the backup directory. Select the file by clicking on the restore link.
*Screen 1 confirms the file you selected to restore and asks if you want to continue or cancel
*Screen 2 shows what is available in the file you have selected to restore


*Screen 3 gives many options for restoring.
  • Restore to: new course, copy over a course or add to a course.
  • Include: This section allows you to select the individual elements you wish to restore.
  • User data: This must be included if you wish to retain student files.
  • Users: This option will transfer enrolled users into the course. This option must be selected if you wish to retain the user data.
  • Course files: These are image and resource files

**Administrators and Course Creators options in 1.6 are:
Restore to an existing course either by adding to the course (keeping existing data) or deleting all existing data; or through the creation of a new course.
**Editing Teachers options in 1.6 are:
Restore to an existing course either adding to the course (keeping existing data) or deleting all existing data.
*Screen 4 - Restore this course now button
*Screen 5 - Reports on what was successfully restored. Pressing continue will take you to the newly created course

Role mappings

Moodle1.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 Screen 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