Backing Up/Restoring Package Information?

Posted by mthaddon on Fri 28 Oct 2005 at 20:02

I'm wondering if anyone can help me out with the best way to backup/restore debian package information? I'm trying to write a script which will allow for "seamless" server migration (I realize this is something of an impossibility), and obviously one of the key pieces is being able to match the packages and the package configuration of one server to another.

I know I can do "dpkg --get-selections" on the source server and then "dpkg --set-selections" followed by "apt-get -u dselect-upgrade" to load the correct packages, but how do I ensure that the configuration options that were chosen on the original server are preserved on the target server?

Thanks, Tom


This article can be found online at the Debian Administration website at the following bookmarkable URL:

This article is copyright 2005 mthaddon - please ask for permission to republish or translate.