Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 Aug 2006 18:23:34 -0400
From:      Lowell Gilbert <freebsd-questions-local@be-well.ilk.org>
To:        DW <spock@dwinner.net>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: pkg database backup and restore
Message-ID:  <44ac5vozvd.fsf@be-well.ilk.org>
In-Reply-To: <44E9FBA2.1010107@dwinner.net> (DW's message of "Mon, 21 Aug 2006 14:29:54 -0400")
References:  <44E9FBA2.1010107@dwinner.net>

next in thread | previous in thread | raw e-mail | index | archive | help
DW <spock@dwinner.net> writes:

> If part of a normal backup routine, we are regularly backing up
> /var/db/pkg, how can we best use that backup in a scenario in which a
> machine needs to be rebuilt from scratch, and we're trying to save
> time going through and doing a portinstall on everything we can
> remember that should be installed? (or alternatively taking a backup
> of the results from a periodic "pkg_info > installed_packages.txt" and
> painstakenly going through the list and reinstalling everything
> one-by-one).

If you are reinstalling all the ports anyway, and you know which ones
they are, then you probably don't need /var/db/pkg for the restore.

Feeding the list of packages into portupgrade for installation would
make the ports reinstall much less painful on the humans involved.

-- 
Lowell Gilbert, embedded/networking software engineer, Boston area
		http://be-well.ilk.org/~lowell/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?44ac5vozvd.fsf>