How often is the data being written to the Serial port?
Sorry to hear you have accidentally deleted the earlier versions. IMHO the only practical step is to strip out enough stuff so you get back to a working version and start over. And make sure to keep back up copies this time.
...R