mfe

command module
v0.1.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 10, 2025 License: MIT Imports: 13 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Moodle File Extractor

Moodle File Extractor (MFE) is a command-line tool designed to extract all files from a .mbz Moodle backup file or an extracted folder.

How it Works

The .mbz file is a .tar.gz archive with the following structure:

scales.xml
activities
course
files
sections
.ARCHIVE_INDEX
completion.xml
files.xml
grade_history.xml
gradebook.xml
groups.xml
moodle_backup.log
moodle_backup.xml
outcomes.xml
questions.xml
roles.xml
  1. The tool reads the files.xml file to map file IDs to their respective files.
  2. For all folders in activities folder that has a name starting with folder_, it processes the folder.xml and inforef.xml files to get the folder structure.
  3. It then copies the files that are in the files folder to the destination folder, maintaining the folder structure.

Usage

mfe <source> <destination_folder>
Arguments
  • <source>: Path to the .mbz file or a folder containing the extracted .mbz file.
  • <destination_folder>: Path to the destination folder where files will be stored.
Options
  • -d, --debug: Enable debug mode for detailed logging.
Example
mfe backup.mbz moodle_files/

Installation

Download binary

You can download the latest binary release from the Releases page.

Build from source

Use go to build the binary:

go install github.com/ktzanev/mfe@latest

License

MIT License

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址