Course size

This plugin provides approximate disk usage by Moodle courses.
Price option: Free

Supports Moodle 2.3-4.5 See all versions
Latest release: 7 months ago
Installations: 7010
Downloads (last 90 days): 1157

Frankenstyle name: report_coursesize
Reports

Comments

Comments are no longer open for new posts. Existing comments remain available to read.

Hi,
Can I get some assistance in installing this plugin for Moodle 2.4. I looked through the README and tried the following, but do not see the coursesize report appearing anywhere:
1. uploaded 20170324-github.com-moodle-report_coursesize-master.zip to admin/report and unzipped content to folder "coursesize"
2. went to Site administration->Notifications but did not see any message relating to new plugin
3. checked under Site administration->Reports and Site administration->Courses but did not see any relevant links
3. checked under Site administration->Plugins->Plugins overview but did not see Coursesize plugin mentioned
I also tried the same steps above for the latest github version (https://github.com/catalyst/moodle-report_coursesize) and moodle.org linked version (https://moodle.org/plugins/report_coursesize).
I am in same boat of needed to clean up a very large moodledata directory, and wanted to see how much space courses may be taking up.
Thanks for any help.
Peace
do you have the path to du set in your installation? https://docs.moodle.org/32/en/System_paths#Path_to_du
This plugin seems to be failing a lot with us lately with the maximum execution time being reached and the script halting. Especially in very large sites (20GB+ on disk and millions of records in the files table). The source does not give away that the disk is being checked, rather it's an elusive join that I think it's failing on.
What is the proper setup to get this working properly? Do you think a scheduled task might be in order?
I don't think anyone here has tested it properly on 3.2 yet, but the existing version will probably still work - let us know if there are any issues by adding a new issue in the github tracker.
Any upgrade to Moodle 3.2?
I'm not sure. I would have put my deletions at less than 400Meg.
So as an experiment I went in today and deleted a bunch of backup files, around 400Meg. The amount reported by your report rose by a Gig or so.
Maybe there is someway it is being counted twice.
I'll now wait a few days until all the deletions are done by the trash collection and see what happens.
I have not solved the problem, just postponed any more thinking about it.
Thanks for the reply Peter.
When I was looking into this some time ago, Moodle had a concept of deleted files. Files would get marked as deleted when no-longer needed, and actually deleted a few days later if nobody manually undeleted them. The deleted files were being stored against the name of the person who deleted them for this short time between being marked as deleted, and being actually deleted. I never did figure out if there was a way for end users to undelete the files if they saw the error of their ways.
Is it possible this is what you're seeing? Did you delete about 1.6GB of data before running the report?
Dan, I asked this last year: How is the individual usage calculated? What is it made up of? - I presume backups + Private files?
You said "Private Files" (etc) . . .
I have less than 5 Meg in my private files.
But it says 1.6 GIG in your course size report.
Any suggestions on anything I can look at to figure this out?
-Derek
yes - I just updated the supported versions, Thanks.
Hello, is this pluggin compatible with Moodle 2.8.1 ? Thanks!
Thanks for the report, I've added a check for the capability on the settings page and pushed that fix into the github repo.
I noticed that Manager role users cannot access the report. Capability 'report/coursesize:view' is allowed for default Manager role, but there is no required capability set for the Site administration link.
HI Derek,
site data is calculated by the physical size used on the server inside the whole "moodledata" directory - it does a file system check to obtain this and doesn't use/look at the moodle database, so this will include all files uploaded directly to the server into the moodledata directory including things like file system repositories or custom added files.
Individual user usage contains all files linked to a user context - which I think is only really the private files area but I haven't checked to see if there are other ways of storing data at the user context other than private files.
Two questions:
How is the site data calculated? (I presume it is the size of the Moodledata database?)
How is the individual usage calculated? What is it made up of? - I presume backups + Private files?
-Derek
Thanks Anthony and thanks German,
German - I've pushed a fix through for that issue, the string was already in the language pack but was hard-coded in the code. I've updated the version here in the plugins db but haven't incremented the version numbers. We have some internal issues with our own use of this plugin and if I bounce the version number and we update our internally hosted sites we'll have some problems! smile
Should have those sorted soon.