Subject: Restoring packages from backup
To: None <>
From: None <>
List: netbsd-users
Date: 09/26/2002 05:27:45
On Debian Linux one can do backups like this:

On backup:

dpkg --get-selections "*" >package_states

and then include package_states in your backup.  This saves a list
describing the installation status of each Debian package.

On restore:

After installing the base Debian system, setting up the network, etc, do

apt-get update
dpkg --set-selections <package_states
apt-get upgrade dist-upgrade

This sets the list of installed packages to what you had before the crash.
apt-get will then automagically fetch and install these packages in the
right order, so you don't need to have backed up the actual packages

Is there a way to get a similar backup/restore scheme happening in NetBSD?