Repair and preservation of records