From owner-freebsd-ports@FreeBSD.ORG Wed May 14 10:48:53 2014 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id C1AEBF42 for ; Wed, 14 May 2014 10:48:53 +0000 (UTC) Received: from home.opsec.eu (home.opsec.eu [IPv6:2001:14f8:200::1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 7AE8D22F7 for ; Wed, 14 May 2014 10:48:53 +0000 (UTC) Received: from pi by home.opsec.eu with local (Exim 4.82 (FreeBSD)) (envelope-from ) id 1WkWjy-0005GN-Qj; Wed, 14 May 2014 12:48:50 +0200 Date: Wed, 14 May 2014 12:48:50 +0200 From: Kurt Jaeger To: Anton Shterenlikht Subject: Re: restore from /var/backup/pkgng.db Message-ID: <20140514104850.GS2341@home.opsec.eu> References: <201405141031.s4EAV0Y4003755@mech-cluster241.men.bris.ac.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201405141031.s4EAV0Y4003755@mech-cluster241.men.bris.ac.uk> Cc: freebsd-ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 May 2014 10:48:53 -0000 Hi! > What program produces /var/backup/pkgng.db and pkgdb.bak.tbz? /var/backup/pkgng.db comes from: /usr/local/etc/periodic/daily/411.pkg-backup > How can these files be used if the pkg database is corrupted? pkg backup -r /var/backups/pkgng.db should work. > If I manually run pkg backup -d somefile, is somefile > identical to /var/backup/pkgng.db? I think so, yes. -- pi@opsec.eu +49 171 3101372 6 years to go !