Quantcast
Channel: Backup and restore
Viewing all articles
Browse latest Browse all 6586

How to make a backup of an activity that has dependencies?

$
0
0
by Juho Jaakkola.  

I'm working on adding the backup/restore feature for the Moodle plugin for H5P.

I'm wondering how to implement it, because the individual course activities have dependencies to content libraries.

See this database diagram: https://www.dropbox.com/s/2s9tdbsdykbryg4/mod_hvp.png?dl=0

The hvp_libraries table is the only one that is not depending on other tables, so I assume it needs to be the first thing to backup. Then again the content being processed is the activity (the hvp table), not the library, so the processing needs to start from the activity, right?

Should the first step be to manually check which libraries the activity is depending on, and continue processing the activity once all the needed libraries have been processed?

Any tips or insights into a case like this? Does any of the bundled plugins have similar structure?


Viewing all articles
Browse latest Browse all 6586

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>