Skip to content

Latest commit

 

History

History
19 lines (13 loc) · 1.2 KB

README.md

File metadata and controls

19 lines (13 loc) · 1.2 KB

extract-mbz

Extract content from Moodle backup files (.mbz)

Background from Dan Wheeler: Working on a request from a professor I was surprised to find that there wasn't yet a tool to extract a Moodle backup archive, much as bFree does for Blackboard archives. After finding only this proof of concept python script on the web (http://www.reades.com/2012/11/29/mb-archives/) I figured I'd take a stab at it. My initial release efforts (I've used it for a few extract requests already) are here. Documentation is below and my python script is attached.

And lest I seem too dismissive, I owe my efforts to Jon Reades and his proof of concept python script. Thanks!

Requirements:

Python 3
python-slugify library (pip3 install python-slugify)

Usage:

python3 extract-mbz.py <full-path-to-your-mbz-file> Replace python3 with python if Python 3 is your default version of Python.
If successful, you will see a new zip file, with the same title as the original .mbz file. Unzip the file to see folders containing the files for each Moodle section. There is also an index.html file that provides a replica of the main Moodle course page with a list of topics and items contained in each topic.