MDL-32862 - Backup: Rewriting resource_old links on backup
MDL-32862 - Backup: Tidy up of the code to meeting coding standards.