Thread: corrupted dbase
View Single Post
Old 05-13-2010, 04:36 PM   #16
ccayer
Member
ccayer is on a distinguished road
 
Posts: 19
Karma: 64
Join Date: May 2010
Device: Dell Axim X50v, JetBook Lite
Quote:
The next release of calibre contains code that will try pretty hard to recover from a corrupted database.
The ability to recover from a corrupted database sounds like a great feature. Even though it's something you hope you never need, it's nice to know that feature is there.

Quote:
I copy metadata.db to metadata.db.1, etc.. I keep 6 copies for the last 6 backups, all the way to metadata.db.6 It's a very simple rename, of metadata.db.1->metadata.db.2, etc. before copying the current metadata.db to metadata.db.1.

I have yet to see a corrupted metadata.db, but if I ever do, I've got all 6 copies backed up every day for months.
The backup of the metadata.db is even more 'insurance' against corruption. Is there a way to have Calibre run a batch file on exit? I can whip up a batch file, similar to the one described, and it would be convenient to have it run automatically when I close Calibre.
ccayer is offline   Reply With Quote