regenerating /var/db/pkg
Doug Barton
dougb at FreeBSD.org
Thu Apr 22 16:48:40 UTC 2010
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/
More information about the freebsd-hackers
mailing list