moosh icon indicating copy to clipboard operation
moosh copied to clipboard

[improvement] course-restore with option settings

Open CartierPierre opened this issue 11 months ago • 0 comments

  • moosh version: 1.17
  • moodle version: 4.3
    • database: mariadb
  • php version: 8.2.7
  • operating system: debian 11

Actual behaviour

The course-restore function can only restore a course as it was when backuped.

Expected behaviour

With the web interface, it's possible to restore as a new course a .mbz, choosing a new course name and selecting settings like enrolment methods (ref to this issue ? https://github.com/tmuras/moosh/issues/325). But there is no option like this for course-restore. I also looked at course-create, but no --from-backup for exemple. And no course-import too.

As you can guess, I want to massively export and import courses from a platform to an other. (No, I don't want to use migration db for this specific task).

Is it possible to improve one of these functions ? Or do you have a trick to do it ? (I saw it's possible to course-backup with --template).

I'm open to discuss :) Thank you

CartierPierre avatar Feb 28 '24 13:02 CartierPierre