Skip to content

Storage Driver: Moodle Filestore

This simple storage driver stores all files inside the Moodle filestore, also known as "Moodledata". This means that no additional setup is required and everything works out of the box. All files are stored locally on the Moodle server and are therefore directly accessible via the Moodle UI.

Configuration

No special configuration is required for this storage driver. It is enabled by default and can be selected during archive job creation or set as a default storage driver in the job presets settings.

If you want to prevent users from storing archives in the Moodle filestore, you can disable this storage driver on the components overview page or via the Enable checkbox on the plugin settings page.

File structure

Files are automatically associated with the respective archive job and stored inside the "Moodledata" directory by Moodle. Admins do not need to specify any paths or directories, as this is handled automatically by Moodle.

Technical implementation details

This information is for developers and administrators only: All files are stored via the Moodle file API using the values listed below. See \archivingstore_moodle\archivingstore::store() for the full implementation details.

Parameter Value
contextid Context ID of the archived activity
component archivingstore_moodle
filearea archive
itemid ID of the archive job
filepath /{$contextid}/{$jobid}/