by Lazaros Sotiriadis.
Hi,
I have updated my code to include checks for same names in same category and not just same short or full names.
I found a bug in the restore dbops class when TARGET_NEW_COURSE mode is used. If a new course restore is requested from backup the code checks if shortname or fullname already exists and adds the word 'copy #' and '_#' in the names. It does not check though if category id is the same and thus restores new names again and again when those exists in another category. I have to report an issue on this..
Simon the new code will probably create all (*.mbz) courses, but I don't think if it will manage to restore them completely. That has to do with the restore options used. It troubles me that as you say, single restore works (except grid format) because I use the same exact options in either directory or file mode restore.
Please try the new version and let me know on your findings. When restoring from UI do you choose new course mode or do you overwrite existing Course? Do both of these work for grid format?
Regards,
Lazaros
I have updated my code to include checks for same names in same category and not just same short or full names.
I found a bug in the restore dbops class when TARGET_NEW_COURSE mode is used. If a new course restore is requested from backup the code checks if shortname or fullname already exists and adds the word 'copy #' and '_#' in the names. It does not check though if category id is the same and thus restores new names again and again when those exists in another category. I have to report an issue on this..
Simon the new code will probably create all (*.mbz) courses, but I don't think if it will manage to restore them completely. That has to do with the restore options used. It troubles me that as you say, single restore works (except grid format) because I use the same exact options in either directory or file mode restore.
Please try the new version and let me know on your findings. When restoring from UI do you choose new course mode or do you overwrite existing Course? Do both of these work for grid format?
Regards,
Lazaros