~/tools/moodle-backup-mbz-inspector$
See what a Moodle course backup holds without restoring it: Moodle version, sections, activities, files and whether user data is inside. Nothing uploaded.
Published
The backup stays on this computer: it is read in this browser and nothing is uploaded. Read the way Moodle 5.3.1 writes it.
~/tools/moodle-backup-mbz-inspector$cat how-to-use
Choose the .mbz file Moodle made: from a course’s Backup page, the course backup area, or php admin/cli/backup.php on the server. It is read in this browser in slices, so a large backup works and nothing leaves your computer.
The tool shows the Moodle release that made it (a backup restores only on that version or newer), the date, the course, each section with its activities, counts by type, the course files by area and the size of each part.
Read the warnings before you send or restore it: user data inside (treat the file as personal data), files left out, a missing gradebook, or an archive that was cut. A file that is not a Moodle backup is refused with the reason.
~/tools/moodle-backup-mbz-inspector$cat proof
On a fresh server for each Ubuntu release, with Moodle 5.3.1 installed as the Moodle course installs it, Moodle’s own test generator made a course and Moodle’s own backup.php backed it up. This tool’s own code read the .mbz: the Moodle release, the course’s names, its sections and its activities by type equal Moodle’s database, the user count equals users.xml, and every entry, byte and stored file equals what tar lists. The run log shows every command and what the server printed.
Ubuntu 26.04.1: passed all 24 checksRead the run log (Ubuntu 26.04.1)
Ubuntu 24.04.5: passed all 25 checksRead the run log (Ubuntu 24.04.5)
Ubuntu 26.04.1
Recorded on the test server just before the first step and again after the last one. Disk used on / (logs written during the run included): +8.6 MB.
No package, boot service, listening port or file in /etc changed.
Ubuntu 24.04.5
Recorded on the test server just before the first step and again after the last one. Disk used on / (logs written during the run included): +8.8 MB.
No package, boot service, listening port or file in /etc changed.
Every command on this page was run on this server and the output shown is what it printed. How we test