Hosting Tiers Hub (9)
Automated Course .mbz Archive & MariaDB Snapshot Strategy
Prevent moodledata/filedir and automated .mbz course backups from filling NVMe exam disks or stalling cron during teaching weeks.
Retention=2 .mbz · Offload snapshots · Dedicated 20% NVMe headroom
How Unbounded .mbz Course Backups Silently Fill 160 GB NVMe
Leaving Moodle automated course backups enabled with keep = 5 on courses containing recorded lectures duplicates multi-gigabyte video blobs inside moodledata/filedir. Once disk usage hits 95%, MariaDB halts writes mid-exam.
Two-Tier Backup Hygiene: Lean .mbz + Nightly DB/Moodledata Sync
Cap automated .mbz retention to 1 or 2 versions, exclude unchanged courses (backup_auto_skip_modif_days), and run incremental MariaDB + moodledata/filedir snapshots offsite while keeping >= 25% free NVMe space.
Measured Thresholds & Configuration
| Backup Layer | Frequency | Retention Window | Storage Impact |
|---|---|---|---|
| MariaDB mysqldump / mariabackup | Daily off-peak (02:00) | 7 - 14 days offsite | Compressed ~10-20% of DB size |
| Course .mbz (Automated) | Weekly (skip unmodified) | Keep 1 - 2 latest | Contained inside NVMe quota |
| moodledata/filedir sync | Daily incremental rsync | Mirror to cold storage | Zero local duplication |