From owner-freebsd-questions@FreeBSD.ORG Sun May 31 21:59:48 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 C2FD41065672 for ; Sun, 31 May 2009 21:59:48 +0000 (UTC) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from wojtek.tensor.gdynia.pl (wojtek.tensor.gdynia.pl [IPv6:2001:4070:101:2::1]) by mx1.freebsd.org (Postfix) with ESMTP id 3C2E48FC19 for ; Sun, 31 May 2009 21:59:46 +0000 (UTC) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from wojtek.tensor.gdynia.pl (localhost [IPv6:::1]) by wojtek.tensor.gdynia.pl (8.14.3/8.14.3) with ESMTP id n4VLxcBn026615; Sun, 31 May 2009 23:59:38 +0200 (CEST) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from localhost (wojtek@localhost) by wojtek.tensor.gdynia.pl (8.14.3/8.14.3/Submit) with ESMTP id n4VLxccL026612; Sun, 31 May 2009 23:59:38 +0200 (CEST) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Date: Sun, 31 May 2009 23:59:38 +0200 (CEST) From: Wojciech Puchar To: Erik Norgaard In-Reply-To: <4A22F2E8.10604@locolomo.org> Message-ID: References: <4A2284D6.2080304@locolomo.org> <4A22F2E8.10604@locolomo.org> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed 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: Sun, 31 May 2009 21:59:51 -0000 >>> Are there any tools or tricks for doing this? >> >> possibly it's compatible but if you are not sure use db_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 it's not FreeBSD but GNU. No man is equivalent of "read documentation in info or out webpage" ;) > :( 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 ups. really i use only db4.1 and it worked don't you have mixed libs and executables. looks like this.