Date: Mon, 21 Aug 2006 14:29:54 -0400 From: DW <spock@dwinner.net> To: freebsd-questions@freebsd.org Cc: "Arend P. van der Veen" <apvanderveen@att.net> Subject: pkg database backup and restore Message-ID: <44E9FBA2.1010107@dwinner.net>
next in thread | raw e-mail | index | archive | help
Hello, Can anyone provide some practical insight into best methods of backing up and restoring package databases? Inside of /var/db there are 2 directories: /var/db/ports and /var/db/pkg /var/db/ports I pretty much understand; that seems to simply be the config options saved from when a port is installed. ok. /var/db/pkg contains: pkgdb.db and a subdirectory for every port installed. 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). Essentially, we're just looking for a streamlined approach to restoring the installed ports when we need to rebuild a machine. Thanks, DW
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?44E9FBA2.1010107>