Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #230849

Re: Backup debconf state

From Andy Smith <andy@strugglers.net>
Newsgroups linux.debian.user
Subject Re: Backup debconf state
Date 2021-01-19 16:30 +0100
Message-ID <Bz17c-3gE-7@gated-at.bofh.it> (permalink)
References <Bz0Xv-3cO-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Hi Erwan,

On Tue, Jan 19, 2021 at 04:09:47PM +0100, Erwan David wrote:
> It would be handy to have the state of debconf (with all the
> answers I already gave).

I do:

dpkg --get-selections \* > /var/lib/dpkg_selections
debconf-get-selections > /var/lib/debconf_selections

(and then back up those files)

You can restore them with the corresponding --set-selections.

> Is a backup of /var/cache debconf sufficient for this ?

I think that stuff lives in /var/lib, but it's better to export it
in a format where it can be re-imported.

Cheers,
Andy

-- 
https://bitfolk.com/ -- No-nonsense VPS hosting

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Backup debconf state Erwan David <erwan@rail.eu.org> - 2021-01-19 16:20 +0100
  Re: Backup debconf state Andy Smith <andy@strugglers.net> - 2021-01-19 16:30 +0100
    Re: Backup debconf state Erwan David <erwan@rail.eu.org> - 2021-01-19 16:40 +0100
  Re: Backup debconf state Sven Joachim <svenjoac@gmx.de> - 2021-01-19 17:40 +0100

csiph-web