Moodle Course Backup Temporary Storage Limits
0 reputation · 07 May 2024, 07:43 UTC
Disk Space Constraints During .mbz Generation
The Moodle Course Backup and Restore mechanism utilizes a backup_controller to package course content and user data into a compressed .mbz file. During this process, the system generates temporary files within the moodledata/temp directory before the final archive is finalized.
In environments with high-volume course data, there is a risk that the temporary directory will exhaust available disk space before the compression phase completes, potentially leading to process failure regardless of the final file size.
- The backup is processed via a background task queue to mitigate PHP timeouts.
- The temporary storage requirement is independent of the final compressed package size.
What are the documented mechanisms for redirecting the temporary backup directory to a separate partition to prevent system-wide disk exhaustion? Is there a configurable limit within the site administration settings to cap the maximum size of temporary files generated during a single backup operation?