Moodle Storage Management

Moodle Storage Management

by Dan Stimson -
Number of replies: 3
We have a Moodle site that is continually eating up disk space and limited resources with which we can work. With the way that it stores submitted work and courses we cannot see any way for us to go in and have a clear down of old work or see where the storage is being used up. Are there any tools or methods that anyone knows of that will help us to monitor and potentially get our storage usage under control?

Thanks


Average of ratings: -
In reply to Dan Stimson

Re: Moodle Storage Management

by Rick Jerz -
Picture of Particularly helpful Moodlers Picture of Testers

Limit uploads to something small, like 16MB.

Are videos being uploaded?  If so, move videos to a separate video server and link to them from within Moodle.

Average of ratings: Useful (1)
In reply to Dan Stimson

Re: Moodle Storage Management

by Ken Task -
Picture of Particularly helpful Moodlers

This sorta falls under 'one solution *does not* fit all'!   Much depends ...

Nothing internal like a plugin of which I am aware.
However, this is a tool (command line only) that will help called moosh

https://moosh-online.com/

and for specific commands related to files
https://moosh-online.com/commands/

Examples of some of the commands:

file-datacheck

Go through all files in Moodle data and check them for corruption. The check is to compare file's SHA to their file names.

file-dbcheck

Check that all files recorder in the DB do exist in Moodle data directory.

Are you doing autobackups?

Another Moosh example:

Example 4: Remove all automated backups and reclaim the space

moosh file-list -i 'component="backup" AND filearea="automated"' | moosh file-delete -s
moosh file-delete --flush

Are your teachers running backups of their own?  Are they cleaning up OLD backups they really no longer need?

One could attempt to use repos for things like videos/audios .. etc.

'spirit of sharing', Ken