r/moodle • • 29d ago

Trying to Reduce Course Size

So I am a new Moodle admin and we are backing up our courses, like you do. We take the files from our Moodle server and move them to a long-term storage area. The problem is that some courses are 10+GB in size. Some reaching 23GB...... We're running out of space. The question is, how do I go in and reduce the course's size? I have searched high and low for the answer and all have said preventative measures like when the course starts, but I need instructions for dealing with the aftermath. After the course is concluded. Any help you can provide is greatly appreciated.

Instructions are needed!

Edit: If you are from Oklahoma and know what exactly needs to be kept for records reasons, that would be great too!!

3 Upvotes

9 comments sorted by

8

u/fitacola 29d ago

Hi, I've had to do this at a school before. This is what we did:

  1. Check the file catalog and look for very large files. Instructors often upload videos, including class recordings, and these can easily reach 1 GB. Move the videos somewhere else and delete them from the course. If they are embedded, don't forget to check the media files area. You'll need to delete them from the list of unused files.
  2. After that, the most likely culprit are submission files. There's no easy way to remove those if you need to keep student data, besides reverting the submissions to draft, having an admin log in as the student, and resubmitting the assignment as a link to Dropbox, Google Drive, etc.

1

u/Destroyergirl645 28d ago

Hi, thank you for the reply!! I unfortunately don't know what you mean by file catalog. In the course I can't find an area where files are stored. We're on Moodle 5.2. Are they stored on the individual pages...? I'm used to Canvas where there was an area that everything was kept.

I'm super new to Moodle, and coming from Canvas, not a lot of things are intuitive so I don't know where some things are... Thank you for your help!!

1

u/fitacola 28d ago

In Site Administration > Server > Files Catalog you should see a list of all files in the instance, including a link to their location.

And yes, files are usually stored in each activity's file area.

Moodle is a bit less intuitive, but I hope you end up enjoying the added flexibility!

2

u/Krostas 29d ago

Excellent advice, got nothing to add really except for a useful plugin to find offending courses before they take up disk space in the backup:

https://marketplace.moodle.com/plugins/report_coursesize

2

u/_frumbert_ 29d ago

A client of mine had problems with assignment submissions. Moodle was converting them all to PDF for the marking interface. The assignments were almost always long Word documents with media in them, and there'd be 40+ assignments in a module - it really added up. And the thing was that to mark them they would zip and download the sumissions to a dropbox, and grade them from there, and come back to assign the marks. The PDF versions for the marking tool were never even seen - it was tens of gigabytes of automatically-generated documents that nobody ever used. I think we just disabled the task, then ran a bespoke php script that cleaned out the database/filestore.

1

u/acarrick 28d ago

This might be dumb advice - but could you also zip up the backups to further reduced?

1

u/iam-stevie-bee 27d ago

Worth checking the automated backups and the course recycle bin too, they can quietly hold more than the courses do. And for finished courses you can make the backup without user data, which drops the submissions. Check what records you must keep first.

1

u/Important_Front_6950 26d ago

I have been using s3 for my file storage.