From owner-freebsd-questions@FreeBSD.ORG Mon Jun 1 08:03:47 2009 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 67986106564A for ; Mon, 1 Jun 2009 08:03:47 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (gate6.infracaninophile.co.uk [IPv6:2001:8b0:151:1::1]) by mx1.freebsd.org (Postfix) with ESMTP id DEB0B8FC0C for ; Mon, 1 Jun 2009 08:03:46 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from significant-gravitas-shortfall.thebunker.net (gateway.ash.thebunker.net [213.129.64.4]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.3/8.14.3) with ESMTP id n5183XO6036145 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 1 Jun 2009 09:03:40 +0100 (BST) (envelope-from m.seaman@infracaninophile.co.uk) X-DKIM: Sendmail DKIM Filter v2.8.2 smtp.infracaninophile.co.uk n5183XO6036145 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=infracaninophile.co.uk; s=200708; t=1243843420; bh=vxfxapnrEzwwtIusT7D12gd6Cn3v/w9qku5cDBfmY98=; h=Message-ID:Date:From:MIME-Version:To:CC:Subject:References: In-Reply-To:Content-Type:Cc:Content-Type:Date:From:In-Reply-To: Message-ID:Mime-Version:References:To; z=Message-ID:=20<4A238B4D.9050801@infracaninophile.co.uk>|Date:=20M on,=2001=20Jun=202009=2009:03:25=20+0100|From:=20Matthew=20Seaman= 20|Organization:=20Infracaninophi le|User-Agent:=20Thunderbird=202.0.0.21=20(X11/20090515)|MIME-Vers ion:=201.0|To:=20Erik=20Norgaard=20|CC:=20q uestions@freebsd.org|Subject:=20Re:=20migrating=20berkeley=20DBs=2 0(4.3=20to=204.6)|References:=20<4A2284D6.2080304@locolomo.org>|In -Reply-To:=20<4A2284D6.2080304@locolomo.org>|X-Enigmail-Version:=2 00.95.7|OpenPGP:=20id=3D60AE908C|Content-Type:=20multipart/signed= 3B=20micalg=3Dpgp-sha1=3B=0D=0A=20protocol=3D"application/pgp-sign ature"=3B=0D=0A=20boundary=3D"------------enig404F01F693319FDB09AF C99F"; b=jpkmpOWc+TyY8klzSz0RLc7pPsdmNb72go1frobBfHIWl1KSjctAHdtP6wTJGY6R0 +CSS/e9HmVW4Pk9B/LvMKLctWWtnWHaaubHpWU5UcfCEhbJtA8smabGMNQg5+SBvQW RWZ2TT4ZzSTn0Zgq3h8ouOmXS42lohEBMNiIwqHg= X-Authentication-Warning: happy-idiot-talk.infracaninophile.co.uk: Host gateway.ash.thebunker.net [213.129.64.4] claimed to be significant-gravitas-shortfall.thebunker.net Message-ID: <4A238B4D.9050801@infracaninophile.co.uk> Date: Mon, 01 Jun 2009 09:03:25 +0100 From: Matthew Seaman Organization: Infracaninophile User-Agent: Thunderbird 2.0.0.21 (X11/20090515) MIME-Version: 1.0 To: Erik Norgaard References: <4A2284D6.2080304@locolomo.org> In-Reply-To: <4A2284D6.2080304@locolomo.org> X-Enigmail-Version: 0.95.7 OpenPGP: id=60AE908C Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig404F01F693319FDB09AFC99F" X-Virus-Scanned: clamav-milter 0.95.1 at happy-idiot-talk.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-2.2 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VERIFIED,SPF_FAIL autolearn=no version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on happy-idiot-talk.infracaninophile.co.uk Cc: questions@freebsd.org Subject: Re: migrating berkeley DBs (4.3 to 4.6) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Jun 2009 08:03:47 -0000 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--