How to backup and restore Content bank on different moodle instances

How to backup and restore Content bank on different moodle instances

Susana L. -
回帖数:5

Hi,

I have been struggling with backup/restore Content bank h5p files from one moodle instance to another. As a teacher, I would like to backup a course A Content bank (with h5p files) from Moodle A instance and restore it on course B from Moodle B instance.

After some testing I could understand that if I include only the Content bank from course A on backup settings and restore it on course B, I get 0 bytes h5p files on course B Content bank... Well, I would like to have your input on this procedure because I doubt this is working as expected...

Thank you,
susana

(Moodle 3.9, PostgreSQL)

回复Susana L.

Re: How to backup and restore Content bank on different moodle instances

Przemek Kaszubski -
Particularly helpful Moodlers的头像 Testers的头像
I've been posting a lot on these issues recently - here's one post to start with: https://moodle.org/mod/forum/discuss.php?d=424426#p1761680 .

The current answer for your case is: Yes, you will restore a copy of the original content bank BUT you will lose any links to these contents from within the restored activities. You will have to reconstruct those manually.
If you're planing to backup and restore a course with H5P activities and embeds from Site A to Site B , it's better not to use links to the Content Bank contents, but to make copies of the H5P file within each activity and / or embed. Then backup the course and restore.

(Of course that undermines the whole concept of the Content Bank, but as it stands, the concept or the way it works appears flawed.)

I'm on Moodle 3.11 now, but your Moodle 3.9 - if yo-to-date - will probably behave the same; and I'm assuming the use of the core H5P activity plugin.

PS. Please if possible vote on this issue: https://tracker.moodle.org/browse/MDL-31094 " Missing support for external repo backup/restore ".
回复Przemek Kaszubski

Re: How to backup and restore Content bank on different moodle instances

Susana L. -
Thank you Przemek. I already voted on the issue.
I just wanted to simply backup and restore the H5P contentbank itself, without the activities... But it seems that is also something I'm not able to...

Best,
susana
回复Susana L.

Re: How to backup and restore Content bank on different moodle instances

Przemek Kaszubski -
Particularly helpful Moodlers的头像 Testers的头像
Oh my, I never thought of that - backing up a course just for the sake of the CB alone. Never tested - maybe one day . .
I only hope you can just delete the unwanted activities (or complete topics containing them,) after the restore, and get what you want.
Thanks for voting on that issue 微笑 .
Regards,
Przemek
回复Przemek Kaszubski

Re: How to backup and restore Content bank on different moodle instances

Randy Thornton -
Voted up and I commented on this as well. This is a major blocker for large organizations here courses are moved around from site to site. Basically it makes H5P linking impossible to use.
回复Randy Thornton

Re: How to backup and restore Content bank on different moodle instances

Przemek Kaszubski -
Particularly helpful Moodlers的头像 Testers的头像
Great to see your support for this issue - here and on the tracker !