Quantcast
Channel: Backup and restore
Viewing all articles
Browse latest Browse all 6815

Not able to perform Course Backup in Moodle.

$
0
0
by Ken Task.  

in code/admin/cli/ there is a restore_backup.php script.

Help on that file shows:
Restore backup into provided category or course.
If courseid is set, course module/s will be added into the course.

Options:
-f, --file=STRING       Path to the backup file.
-c, --categoryid=INT    ID of the course category to restore to. This option is ignored when restoring an activity and courseid is set.
-C, --courseid=INT      ID of the course to restore to. This option is ignored when restoring a course and the categoryid is set.
-s, --showdebugging     Show developer level debugging information
-h, --help              Print out this help.

Example:
$sudo -u www-data /usr/bin/php admin/cli/restore_backup.php --file=/path/to/backup/coursebackup.mbz --categoryid=1

path to backup is a the location of the .mbz file you made using the backup.php script.   No need to download and upload.

A question though, is the purpose of this to prepare that course for use without current users and their work ... ie, a blank course?

If so, since you have an .mbz file (backup) that should cover your records retention policy.   Instead of restoring the same course, reset the current course removing all student work and student users ... leaving the teacher of the course and all the content of that course.

'SoS', Ken


Viewing all articles
Browse latest Browse all 6815

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>