This post originated from an RSS feed registered with Agile Buzz
by James Robertson.
Original Post: Data recovery in BottomFeeder
Feed Title: Cincom Smalltalk Blog - Smalltalk with Rants
Feed URL: http://www.cincomsmalltalk.com/rssBlog/rssBlogView.xml
Feed Description: James Robertson comments on Cincom Smalltalk, the Smalltalk development community, and IT trends and issues in general.
I've had BottomFeeder copying the current data files to a backup directory - so as to preserve a "known good" rev of the data before startup for awhile now. yesterday, I took a look at that code and realized that the code was making an invalid check - and thus could possibly overwrite a good backup with a blown save file. That's not good. So, I took a look at the startup sequence, had the typical who wrote this crap? Oh yeah, that would be me kind of reaction, and fixed it. The dev update has a much cleaner startup now, and it'll attempt to read the backup date if the normal save file is blown - and won't, in fact, overwrite the backup data in that circumstance. Should be cleaner and safer (although you should still backup the data yourself as well).