Note: You are currently viewing documentation for Moodle 3.6. Up-to-date documentation for the latest stable version of Moodle is likely available here: Course backup.

Course backup: Difference between revisions

From MoodleDocs
(backup template, removing info on previous versions)
(content moved from Backup 2.0, rewriting)
Line 1: Line 1:
{{Backup}}
{{Backup}}
A course can be saved with some or all of its parts by using the course backup.  Typically, the site administrator will set a schedule of [[Automated course backup|automated course backups]] for the whole site.  A teacher with editing privileges can create a backup or download an existing backup for safe keeping, or for use on another Moodle site.   
A course can be saved with some or all of its parts by using the course backup.  Typically, the site administrator will set a schedule of [[Automated course backup|automated course backups]] for the whole site.  A teacher with editing privileges can create a backup or download an existing backup for safe keeping, or for use on another Moodle site.   
==Backing up a course==
[[Image:Backup of a course section.png|thumb|Schema selection, no user data selected in initial settings]]To backup a course
# Go to ''Settings > Course administration > Backup''
# Initial settings - Select activities, blocks, filters and other items as required then click the Next button. Users with appropriate permissions, such as administrators, can choose whether to include users, anonymize user information, or include user role assignments, user files, comments, user completion details, course logs and grade history in the backup.
# Schema settings  - Select/deselect specific items to include in backup then click the Next button
# Confirmation and review - Check that everything is as required, using the Previous button if necessary, otherwise click the 'Perform backup' button
# Complete - Click the Continue button
A backup file (with distinctive .mbz extension to avoid confusion with .zip files) is then saved in the course backup area.
Backup in Moodle 2.0 video:
<mediaplayer>http://www.youtube.com/watch?v=mya-u0zAZZE</mediaplayer>
==Anonymizing user information==
Anonymize user information is a backup feature which "protects user identities" by making each user anonymous. If this box is checked in the backup initial settings, Moodle will substitute aliases for real names, substituting @example.com e-mail addresses and so forth. For example  "Max Manager" might become  "anonfirstname4 anonlastname4".
==Backup and restore from 1.9 to 2.0==
It is not possible to backup a course on a 1.9 site and restore it to a 2.0 site, only to a 2.1 site. A workaround is to upgrade the 1.9 site to 2.0.
==Tips and tricks==
* Lose content after a restore in Moodle 2.0 ?  Do you see topic headings that say "Orphaned activities"?  Solution: Go to course settings and increase the number of topic sections and things will return to normal.


==Creative uses==
==Creative uses==
Line 13: Line 40:


*[[Course restore]]
*[[Course restore]]
{{stub}}


[[ca:backup/backup]]
[[ca:backup/backup]]

Revision as of 08:55, 13 October 2011

A course can be saved with some or all of its parts by using the course backup. Typically, the site administrator will set a schedule of automated course backups for the whole site. A teacher with editing privileges can create a backup or download an existing backup for safe keeping, or for use on another Moodle site.

Backing up a course

Schema selection, no user data selected in initial settings

To backup a course

  1. Go to Settings > Course administration > Backup
  2. Initial settings - Select activities, blocks, filters and other items as required then click the Next button. Users with appropriate permissions, such as administrators, can choose whether to include users, anonymize user information, or include user role assignments, user files, comments, user completion details, course logs and grade history in the backup.
  3. Schema settings - Select/deselect specific items to include in backup then click the Next button
  4. Confirmation and review - Check that everything is as required, using the Previous button if necessary, otherwise click the 'Perform backup' button
  5. Complete - Click the Continue button

A backup file (with distinctive .mbz extension to avoid confusion with .zip files) is then saved in the course backup area.

Backup in Moodle 2.0 video:

<mediaplayer>http://www.youtube.com/watch?v=mya-u0zAZZE</mediaplayer>

Anonymizing user information

Anonymize user information is a backup feature which "protects user identities" by making each user anonymous. If this box is checked in the backup initial settings, Moodle will substitute aliases for real names, substituting @example.com e-mail addresses and so forth. For example "Max Manager" might become "anonfirstname4 anonlastname4".

Backup and restore from 1.9 to 2.0

It is not possible to backup a course on a 1.9 site and restore it to a 2.0 site, only to a 2.1 site. A workaround is to upgrade the 1.9 site to 2.0.

Tips and tricks

  • Lose content after a restore in Moodle 2.0 ? Do you see topic headings that say "Orphaned activities"? Solution: Go to course settings and increase the number of topic sections and things will return to normal.

Creative uses

The backup and restore processes can offer the teacher and administrators many creative solutions.

  • Duplicating courses or specific activities in one course to another course (similar to Import)
  • Updating a production Moodle site course, with material from a localhost site course
  • Transferring a course to a new Moodle site.
  • In earlier versions of Moodle, a way of rolling a course forward without past student activity
  • Creating a blank activity, save just that activity and then restore it to the course or another course one or more times.

See also