This morning I accidentally deleted a bunch of stuff in a elephant store for lisp. I was using the standard berkeley DB. I was worried that everything I had done was totally gone.

Luckily you can do a db_recover to a specific date/time

db_recover -t

as a side note, I was trying to use db_printlog and it kept giving me an error about environment mismatch. After messing around with this for an obscene amount of time, I discovered that if you do much of anything with elephant, there are a bunch of __db.00x files out there. If you do a db_recover, (I would close your elephant store first, don’t know if it makes a difference) all of those files are gone and db_printlog (and a few other things) work fine. If you are sure that your executables are of the same flavor (i.e. 4.5 or 4.7 etc.) and you are having ‘version mismatch’ errors, give db_recover a try first.

Hope this helps!

Advertisement