When using automated backups, when a course backup fails, for example through it being overly large, subsequent course backups all fail, regardless of their content.
Currently, this appears to affect Moodle 2.5 and 2.4, but not the current master (pre-2.6).
- Set time limit in your php.ini something very large like a day.
- Log in as admin
- Ensure there are multiple courses created on your site.
- Navigate to a course in the middle (not the first or last)
- Add large files to that course so that it contains at least 6GB of media content spread over multiple activities.
- Set the following site configuration settings...
- backup_auto_active - manual
- backup_auto_storage - specified directory
- backup_auto_destination - path to some writeable dir
- Run the script php admin/cli/automated_backup.php
Expected result: Backup of the large course should fail, but others should succeed.
Actual result: Backup of the large course fails, but so do courses that are backed up following it. They fail quickly.
Looking at the results of the automated backup...
- In the temp folder, folders are created for subsequent courses, but no content is added to them.
- The log of the course backup contains little data and ends abruptly with an exception.