From owner-freebsd-hackers@FreeBSD.ORG Thu Apr 22 16:48:40 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 84755106566C for ; Thu, 22 Apr 2010 16:48:40 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from mail2.fluidhosting.com (mx23.fluidhosting.com [204.14.89.6]) by mx1.freebsd.org (Postfix) with ESMTP id 10B9F8FC17 for ; Thu, 22 Apr 2010 16:48:39 +0000 (UTC) Received: (qmail 975 invoked by uid 399); 22 Apr 2010 16:48:39 -0000 Received: from localhost (HELO ?192.168.0.145?) (dougb@dougbarton.us@127.0.0.1) by localhost with ESMTPAM; 22 Apr 2010 16:48:39 -0000 X-Originating-IP: 127.0.0.1 X-Sender: dougb@dougbarton.us Message-ID: <4BD07DE5.7020801@FreeBSD.org> Date: Thu, 22 Apr 2010 09:48:37 -0700 From: Doug Barton Organization: http://SupersetSolutions.com/ User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.9) Gecko/20100317 Thunderbird/3.0.4 MIME-Version: 1.0 To: Diane Bruce References: <4BCE5ECC.6070202@gmail.com> <4BCFE209.20501@FreeBSD.org> <20100422111758.GA39338@ei.bzerk.org> <20100422125402.GR33521@e.0x20.net> <20100422134425.GA22049@night.db.net> In-Reply-To: <20100422134425.GA22049@night.db.net> X-Enigmail-Version: 1.0.1 OpenPGP: id=1A1ABC84 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org, Eitan Adler , "Aryeh M. Friedman" , Ruben de Groot , Lars Engels Subject: Re: regenerating /var/db/pkg X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Apr 2010 16:48:40 -0000 On 4/22/2010 6:44 AM, Diane Bruce wrote: > On Thu, Apr 22, 2010 at 04:12:08PM +0300, Eitan Adler wrote: >>> Hmm, I guess you shouldn't backup /var/foo to /var/bar. If /var is lost, >>> your backup is gone, too. > > In your crontab > > MAILTO=... > @weekly /usr/sbin/pkg_info -I -a pkg_info -o -a would probably be more useful from the standpoint of rebuilding ports after a lost /var/db/pkg. For portmaster users 'portmaster --list-origins' would give you a list that you could then do 'portmaster `cat list`' to rebuild everything for you. hth, Doug -- ... and that's just a little bit of history repeating. -- Propellerheads Improve the effectiveness of your Internet presence with a domain name makeover! http://SupersetSolutions.com/