MDL-38189 Backup/restore: Backport of Moodle 2.6 backup/restore reliability fixes
Merge remote-tracking branch 'sam/MDL-38189-m25' into MOODLE_25_BFC
Contains multiple improvements to backup/restore, backported from 2.6