Overall Course Size report Moodle 2.4.3?

Overall Course Size report Moodle 2.4.3?

por Barbara Taylor -
Número de respuestas: 2

Is there a report that will tell what the size of a course is before it is backed up?  We are trying to identify courses that are 350MB or more and are finding it isn't an easy task to find that information.  

Thank you

Promedio de valuaciones (ratings): -
En respuesta a Barbara Taylor

Re: Overall Course Size report Moodle 2.4.3?

por Dan Marsden -
Imagen de Core developers Imagen de Particularly helpful Moodlers Imagen de Peer reviewers Imagen de Plugin developers Imagen de Plugins guardians Imagen de Testers Imagen de Translators

Peter wrote one here for us that should work in 2.4:

https://github.com/peterbulmer/moodle-report_coursesize

it won't be overly efficient - we have an internal process that generates disk usage and caches in the db - the script looks for that field first and if it doesn't exist it generates a total disk usage on every page load. If someone wants to improve this a bit make sure you send a pull request through with the changes so we can update it for others.

Also good to point out that if a file is reused accross multiple courses it will count the file size in each course so if you add up all the sizes from each course it will be higher than the total disk usage (hope that makes sense)