Could calibre then automatically store a copy of an opf in with the entries, just so if anything like this happens again, and a user hadn't got a backup (of any sort), then rebuilding would be fairly simple.
You could even have an option (perhaps in preferences, with 'Check database integrity') to 'Rebuild database from directory', which could read these opf's and rebuild the database as much as possible.
|