Tuesday, August 9, 2016

Restore Moodle course in command line with MOOSH

It's the next step of this, restoring your big Moodle course in command line with MOOSH:


course-restore

Restore course from path/to/backup.mbz to category or existig course.
Example 1: Restore backup.mbz into category with id=1
moosh -n course-restore backup.mbz 1
Example 2: Restore backup.mbz into existing course with id=3
moosh -n course-restore -e backup.mbz 3