Note: You are currently viewing documentation for Moodle 2.9. Up-to-date documentation for the latest stable version of Moodle may be available here: Course restore.

Course restore: Difference between revisions

From MoodleDocs
No edit summary
(new features template)
 
(53 intermediate revisions by 15 users not shown)
Line 1: Line 1:
'''Note for Contributors'''
{{Backup}}
This page should explain what can be seen on the <u>moodlesite.com/files/index/backupdata.php</u> page
==Restoring a course backup==
just before starting the restore process
The actual restore process should be explained [[backup/restore|here]]


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.


''unfinished''
Note (1) If you are restoring a course with user data (forum posts for example) then be careful when setting the course start date as all data will display within the same timeframe but from the new start date. So if your course originally began in 2010 and participants posted in 2012, then if you restore your new course with a start date of 2014,  these forum posts will display with a date of 2016, ie, 2 years after the original course start date. See MDL-9367 and MDL-44961.


If you have backup files you wish to restore to the system, click on this button.
Note (2) If your new course has fewer sections than the course you are restoring, the extra sections will appear as "orphaned activities". Increase the number of sections in the new course to make them visible.


{{New features}}Note (3) If you are restoring a course from a different Moodle site and you obtain the error message "Trying to restore user (admin) from backup file will cause conflict", you can enable the setting 'Allow admin conflict resolution' in ''Site admin > Courses > Backups > General import defaults'' (Moodle 2.9.5 onwards only).


Make sure you are logged into Moodle and looking at the new (usually empty) course into which you want to transfer materials.
# 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.)
In the Administration menu block, click on Restore...
# Upload the backup file or choose a file in the course backup area or user private backup area and click Restore
# Confirm - Check that everything is as required then click the Continue button
# 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 Next button
# Schema - Select/deselect specific items and amend the course name, short name and start date if necessary then click the Next button
# Review - Check that everything is as required, using the Previous button if necessary, then click the 'Perform restore' button
# Complete - Click the continue button
[[Image:newcoursebackup.png]]


==Restoring from course and category management screens==


Click on Upload a file.
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:
Click on Browse... and locate the backup file you had created above and saved to your desktop (or other location).
Choose the backup file you had made and then click Upload this file. You should receive the message "File uploaded successfully."


If you receive a message stating the file is too large to be uploaded, please contact root@stolaf.edu and let them know which course you are backing up and which course it needs to be restored to and they can transfer the backup file for you. Do not continue with these instructions until you hear back from root.
{|
Click on Restore.
| [[File:courserestore27.png|thumb|300px|Restoring from course/management.php]]
When asked whether you want to continue, click Yes.
| [[File:courserestorecategory.png|thumb|300px|Restoring from the category management screen]]
The details of your backup will be displayed. Click on Continue.
|}
In the Restore to: selection box, choose whether to delete the materials in the current course first or to add materials to any existing materials. The default -- and recommended -- option is to add data/materials to the current course.  
Click on Continue.  
Click on Restore this course now! The restoration process will begin. Allow it to continue until you see the message "Restore completed successfully."
Click on Continue.
In the Administration menu block, click Files...
Click on the backupdata folder.
Click the small check-box in front of the backup file name you created. From the With chosen files... pull-down menu, choose Delete completely.


==Course restore capabilities==


When asked to confirm whether you want to delete the backup file, click Yes.
* [[Capabilities/moodle/restore:createuser|Create users on restore]]
You may now customize the materials for the new course/term. Don't forget to update due dates, availability of quizzes, etc.
* [[Capabilities/moodle/restore:configure|Configure restore options]]
* [[Capabilities/moodle/restore:restoreactivity|Restore activities]]
* [[Capabilities/moodle/restore:restorecourse|Restore courses]]
* [[Capabilities/moodle/restore:restoresection|Restore sections]]
* [[Capabilities/moodle/restore:restoretargethub|Restore from files targeted as hub]]
* [[Capabilities/moodle/restore:restoretargetimport|Restore from files targeted as import]]
* [[Capabilities/moodle/restore:rolldates|Roll activity configuration dates on restore]]
* [[Capabilities/moodle/restore:uploadfile|Upload files to backup areas]]
* [[Capabilities/moodle/restore:userinfo|Restore user data]]
* [[Capabilities/moodle/restore:viewautomatedfilearea|Restore courses from automated backups]]
 
==See also==
 
* [[Restoring file aliases]]
 
[[fr:Restauration]]
[[ja:リストア]]
[[es:Restaurar_un_curso]]
[[de:Kurswiederherstellung]]

Latest revision as of 08:06, 14 March 2016

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.

Note (1) If you are restoring a course with user data (forum posts for example) then be careful when setting the course start date as all data will display within the same timeframe but from the new start date. So if your course originally began in 2010 and participants posted in 2012, then if you restore your new course with a start date of 2014, these forum posts will display with a date of 2016, ie, 2 years after the original course start date. See MDL-9367 and MDL-44961.

Note (2) If your new course has fewer sections than the course you are restoring, the extra sections will appear as "orphaned activities". Increase the number of sections in the new course to make them visible.

New feature
in Moodle 2.9!
Note (3) If you are restoring a course from a different Moodle site and you obtain the error message "Trying to restore user (admin) from backup file will cause conflict", you can enable the setting 'Allow admin conflict resolution' in Site admin > Courses > Backups > General import defaults (Moodle 2.9.5 onwards only).

  1. 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.)
  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
  4. Destination - Choose whether the course should be restored as a new course or into an existing course then click the Continue button
  5. Settings - Select activities, blocks, filters and possibly other items as required then click the Next button
  6. Schema - Select/deselect specific items and amend the course name, short name and start date if necessary then click the Next button
  7. Review - Check that everything is as required, using the Previous button if necessary, then click the 'Perform restore' button
  8. Complete - Click the continue button

newcoursebackup.png

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:

Restoring from course/management.php
Restoring from the category management screen

Course restore capabilities

See also