Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 22 Apr 2010 09:48:37 -0700
From:      Doug Barton <dougb@FreeBSD.org>
To:        Diane Bruce <db@db.net>
Cc:        freebsd-hackers@freebsd.org, Eitan Adler <eitanadlerlist@gmail.com>, "Aryeh M. Friedman" <aryeh.friedman@gmail.com>, Ruben de Groot <mail25@bzerk.org>, Lars Engels <lars.engels@0x20.net>
Subject:   Re: regenerating /var/db/pkg
Message-ID:  <4BD07DE5.7020801@FreeBSD.org>
In-Reply-To: <20100422134425.GA22049@night.db.net>
References:  <4BCE5ECC.6070202@gmail.com> <4BCFE209.20501@FreeBSD.org>	<20100422111758.GA39338@ei.bzerk.org>	<o2oa0777e081004220521sae3b1b06o884fd8eadffc6931@mail.gmail.com>	<20100422125402.GR33521@e.0x20.net>	<i2ra0777e081004220612ka129f18aga113399ca541e6a5@mail.gmail.com> <20100422134425.GA22049@night.db.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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/




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