in reply to (lestrrat) DB_File woes

A newer Red Hat probably comes with a newer version of Berkeley DB (libdb.so, I think). There may be incompatibilities. You might need to open these files on a machine with an older Perl and Berkeley DB, dump them to an intermediary format (CSV or XML), and then load them on the new machine. You can check http://sleepycat.com/ for info on compatibility between versions, or ask Red Hat if you pay them for support.

Replies are listed 'Best First'.
Re: Re: (lestrrat) DB_File woes
by lestrrat (Deacon) on Jan 17, 2002 at 03:08 UTC

    I think you were right on the spot. file command gave me this:

    /my/dbfile.db: Berkeley DB 1.85 (Hash, version 2, native byte-order)

    Then I proceeded to find a tool called db_dump185, which can dump contents of a BerkleyDB file prior to version 1.86 ( which is apparently when the db format changed )

    lestrrat wonders why they couldn't just print out an error message like "Invalid file format" or some such thing....

    So anyway... it looks like I need to db_dump/db_load and change all the files. That doesn't sound like a fun job, but I'm happy that I can at least read the damn things :-)

    Thanks for your tip!

      Useful lesson for next time.

      Keep backups in ASCII format. :-)