-
New Feature
-
Resolution: Duplicate
-
Minor
-
None
-
3.8, 3.9, STABLE backlog
-
MOODLE_38_STABLE, MOODLE_39_STABLE
-
Easy
-
-
Small
Although a cli/admin/backup.php script is available for Course backup to specific destination, there is no relative admin/cli/restore.php to reverse the action.
Thus I thought it was a nice idea to create one, as close as possible to the options provided by the existing backup.php
I have created a branch for this in my repository.
It can restore either a specific course from a single .mbz source or an entire category from a source directory containing multiple .mbz files.
I did test it on 3.8 but I think it will work without problem on any version because it uses only moodle api's
It is discussed in forum here
Regards,
Lazaros
- Discovered while testing
-
MDL-67531 backup::restore_dbops/caclulate_course_names does not check for same category
- Closed
- has been marked as being related by
-
MDL-67553 admin/cli/backup.php improvement to backup entire category to directory
- Open
- is duplicated by
-
MDL-69307 Add CLI script to restore a course from backup file
- Closed