migrating berkeley DBs (4.3 to 4.6)
norgaard at locolomo.org
Sun May 31 21:13:14 UTC 2009
Wojciech Puchar wrote:
>> my data, and I would like to migrate my cyrus-imapd also to a newer version
>> of BDB.
>> Are there any tools or tricks for doing this?
> possibly it's compatible but if you are not sure use db<version>_dump and
> _load to dump and restore data.
Thanks, I've had a look at the dump and load utilities, they have no man
page :( dump works fine, or so I assume. But load fails, it appears that
db_load won't create a new db file if it does not exist, and creating an
empty file with touch fails too:
alpha$ db_dump-4.3 -f cn.bdb.dump cn.bdb
alpha$ db_load-4.6 -f cn.bdb.dump cn46.bdb
db_load-4.6: Program version 4.6 doesn't match environment version 0.154
db_load-4.6: DB_ENV->open: DB_VERSION_MISMATCH: Database environment
The "environment version" varies.
Any hints on how to use these utilities to migrate?
Ph: +34.666334818/+34.915211157 http://www.locolomo.org
More information about the freebsd-questions