Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 01 Jun 2009 09:03:25 +0100
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
To:        Erik Norgaard <norgaard@locolomo.org>
Cc:        questions@freebsd.org
Subject:   Re: migrating berkeley DBs (4.3 to 4.6)
Message-ID:  <4A238B4D.9050801@infracaninophile.co.uk>
In-Reply-To: <4A2284D6.2080304@locolomo.org>
References:  <4A2284D6.2080304@locolomo.org>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig404F01F693319FDB09AFC99F
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Erik Norgaard wrote:

> I have cyrus-imapd 2.3 with Berkeley DB 4.3 and openldap also compiled
> with BDB 4.3.
>=20
> Now, openldap won't build with 4.3 and defaults to 4.6 so I need to
> migrate my data, and I would like to migrate my cyrus-imapd also to a
> newer version of BDB.
>=20
> Are there any tools or tricks for doing this?
>=20
> The BDB v4.4 port refers to a compatibility page maintained at
> sleepycat, but this is now redirected to Oracle and I find no such
> information. Any page listing the db file compatibility?

Yes -- I believe BDB 4.3 and 4.6 aren't binary compatible it seems.

For the special case of cyrus-imapd you should use cvt_cyrusdb(8) to
dump out the contents of cyrus DB files to ascii, update everything, and
then use cvt_cyrusdb to reload the data.

As I recall, the real biggie for this is maintaining the 'seen' state.
I think just about anything else can be rebuilt from the mailbox data
itself by running a reconstruct.  However, on a large mailspool
reconstruct will take a while, so dump'n'reload would be preferable.

	Cheers,

	Matthew

--=20
Dr Matthew J Seaman MA, D.Phil.                       Flat 3
                                                      7 Priory Courtyard
PGP: http://www.infracaninophile.co.uk/pgpkey         Ramsgate
                                                      Kent, CT11 9PW, UK


--------------enig404F01F693319FDB09AFC99F
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.11 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkoji1IACgkQ3jDkPpsZ+VbwsQCdGGzRUu97khz0armty4Cs7N8k
VmwAn0wlyVzRMKpBwz6QZ7efTwvq3jso
=scRA
-----END PGP SIGNATURE-----

--------------enig404F01F693319FDB09AFC99F--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4A238B4D.9050801>