Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
2.6.3, 2.7.3, 2.8.1
-
MOODLE_26_STABLE, MOODLE_27_STABLE, MOODLE_28_STABLE
-
MOODLE_27_STABLE, MOODLE_28_STABLE
-
MDL-47601_master -
-
BACKEND Sprint 18
Description
Automated courses backups process do not delete old backups (backup_auto_keep config) when the file is renamed because of language translation (New feature in 2.6 ?).
For example : Our environment is by default in French, so backup files were called "backup-moodle2-course-...". After updating language strings, backups were renamed to "sauvegarde-moodle2-course-...". Now, old backups with file name in English stays forever (See attachments).
I dug the code and the commits and found out that the bug is possibly there since Moodle 2.0. Code for deleting old backups comes from the remove_excess_backups method created in task MDL-22184 (See http://git.moodle.org/gw?p=moodle.git;a=commitdiff;h=bac233d32666bf05dd001dce21c0e44537960c39).