Skip to content
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

$CFG->mod_hvp_backup_libraries is undocumented #535

Open
marxjohnson opened this issue Jan 15, 2024 · 1 comment
Open

$CFG->mod_hvp_backup_libraries is undocumented #535

marxjohnson opened this issue Jan 15, 2024 · 1 comment

Comments

@marxjohnson
Copy link
Contributor

We have a client who is concerned that courses with instances of mod_hvp are taking a very long time to backup, sometimes resulting in timeouts from the load balancer.

Looking in to this we found this was due to the inclusion of all H5P libraries in the backup, not just those used on the course. As the site is using ObjectFS, this added the latency of downloading several thousand small files from object storage to the backup task.

It appears that the solution to this is to set $CFG->mod_hvp_backup_libraries = 0; in config.php. I was only able to find this by looking at the code, and there is no explanation of the risks or limitations associated with excluding libraries from backups.

Please could you add some documentation to explain this setting, allowing for informed decisions about whether to use it?

@nadavkav
Copy link
Contributor

nadavkav commented Jun 22, 2024

We use this too, and also found it while looking in the code for a solution to the hague backup files and slow backup process.
We turn it ON when doing a course backup with H5P activities that we need to transfer to a different Moodle site, otherwise, it will not work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants