-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Backup and restore support #4
Comments
Nope. I haven't come up with any way to support this except through core changes. |
Should we open an MDL in the tracker for those core changes? are you happy with them? |
Good point, we really need backup/restore support. Maybe this can be part of the impetus for making this part of Core (or implementing hooks... ;) ) |
I would think it might be worth considering adding core backup/restore support for local plugins. Although, it might be difficult since local plugins exist outside of a course context. |
Until we have core support, maybe... we can have a dummy metadata module that we add to each course with only backup and restore implemented? |
Interesting: https://tracker.moodle.org/browse/MDL-55943 |
Found a promissing example for implementation :-) |
Since core supports it, we can add it. I would suggest the correct places to implement it would be in each context subplugin. |
Yep. like mod/assign subplugins did. |
@nadavkav are you going to implement any of the backup/restore code? Or are you looking for me to do that? Just setting my plans. |
We are (one of my team, or me). sorry for no being clear on this. |
@mchurchward Hi, i tried to implement backup/restore, with local plugins. It seems that moodle does not add backup nested elements to XML in local metadata plugin. Maybe you can advice how to implement it? Thanks! |
@kirildevlion , please give a more descriptive name to process_localkiril 😄 |
Hey, I've managed to implement backup/restore for the plugin. BUT
And that's it... For other metadata types (users, categories, cohorts), I don't think that's possible and more to the point, I think that's not useful as they can be used in courses, but their metadata is not specific to each course.
|
Thank you @Birssan for sharing this code! I have downloaded it and it work great in our Moodle instance. |
It works fine for our Moodle as well, I guess it needs further testing though. We only use metadata for modules as you do, but It would be nice if this feature is available for every metadata types. |
Finally getting around to looking at this. @Birssan where is the code you created? |
@mchurchward I haven't made a PR yet, I actually wanted to get your input on what I explained first. How come it's only possible to backup/restore course and module metadata but not the rest ? |
@Birssan I got it from your repo, as far as I remember. |
That's what I thought too, but turns out I hadn't pushed it, so I only pushed it yesterday. Anyway, not really important, you have it and it works, that's enough :p |
Sorry I'm so late to the party here. This would still be a great addition.
|
Hi! Is anybody able to give an update about this feature please? |
Any ideas about this? as we are about to start implementing it.
The text was updated successfully, but these errors were encountered: