Overall Course Size report Moodle 2.4.3?

Overall Course Size report Moodle 2.4.3?

by Barbara Taylor -
Number of replies: 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

Average of ratings: -
In reply to Barbara Taylor

Re: Overall Course Size report Moodle 2.4.3?

by Dan Marsden -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers Picture of Plugins guardians Picture of Testers Picture of 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)