Date: Sun, 31 May 2009 23:13:12 +0200 From: Erik Norgaard <norgaard@locolomo.org> To: Wojciech Puchar <wojtek@wojtek.tensor.gdynia.pl> Cc: questions@freebsd.org Subject: Re: migrating berkeley DBs (4.3 to 4.6) Message-ID: <4A22F2E8.10604@locolomo.org> In-Reply-To: <alpine.BSF.2.00.0905312134570.25771@wojtek.tensor.gdynia.pl> References: <4A2284D6.2080304@locolomo.org> <alpine.BSF.2.00.0905312134570.25771@wojtek.tensor.gdynia.pl>
next in thread | previous in thread | raw e-mail | index | archive | help
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 version mismatch The "environment version" varies. Any hints on how to use these utilities to migrate? Thanks, Erik -- Erik Nørgaard Ph: +34.666334818/+34.915211157 http://www.locolomo.org
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4A22F2E8.10604>