Restoration of a previosly corrupted repository