Re: Extract debconf settings?
On Thu, May 23, 2002 at 08:23:24AM +0200, Turbo Fredriksson wrote:
> I'm about to install two _IDENTICAL_ machines, that is to
> replace some functionality on my current live server.
>
> I'd like exactly the same packages (dpkg --get-selections),
> same configuration (debconf ?) etc. The only settings that
> should NOT be identical (that I can think of) is hostname,
> IP address and the 'heartbeat' config (one is master, the
> other one slave).
>
> Is it possible to extract the information that debconf knows
> from machine1 and apply this on machine2?
Try checking /var/cache/debconf/{config,passwords}.dat
They are text files, so grep/sed/awk would help.
I was wandering about writing a small utility which would make a deb package
to help administrators make a copy or backup (snapshot) of the system (non
users data).
This deb should depend on the smallest set of the actually installed packages
needed to rebuild the packages list; it would also copy/backup the
configuration and other conf files or templetize them (to let admin make a
perfect copy of the system).
Could it be of help (or perhaps ther is such a tool somewhere)?
--
Luca - De Whiskey's - De Vitis | Elegant or ugly code as well
aliases: Luca ^De [A-Z][A-Za-z\-]*[iy]'\?s$ | as fine or rude sentences have
Luca, a wannabe ``Good guy''. | something in common: they
local LANG="it_IT@euro" | don't depend on the language.
--
To UNSUBSCRIBE, email to debian-devel-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Reply to: