Hi, I've been working with course's backup/restore in moodle.
You can try to make backups con cli or moosh:
Example \$sudo -u www-data /usr/bin/php admin/cli/backup.php --courseid=2 --destination=/moodle/backup/
In "General backup defaults" settings not check "Include user completion information"
Both take into account the configuration of moodle.
To restore courses in another site I'm using https://github.com/tmas0/moodle-tool_autorestore, this plugin has has its own configuration
moosh not works for me:
Default exception handler: error/setting_by_name_not_found Debug:
Error code: setting_by_name_not_found
$a contents: enrol_migratetomanual
other Plugins related:
I've tested that in moodle 3.3.