Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #230848 > unrolled thread
| Started by | Erwan David <erwan@rail.eu.org> |
|---|---|
| First post | 2021-01-19 16:20 +0100 |
| Last post | 2021-01-19 17:40 +0100 |
| Articles | 4 — 3 participants |
Back to article view | Back to linux.debian.user
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
| From | Erwan David <erwan@rail.eu.org> |
|---|---|
| Date | 2021-01-19 16:20 +0100 |
| Subject | Backup debconf state |
| Message-ID | <Bz0Xv-3cO-5@gated-at.bofh.it> |
Hello everybody If I want to be able to fast reinstall a debian after a crash, I already backup /etc (including /etc/apt), a file with the output of apt-show manual to get the list of manually installed packages, /etc, but It would be handy to have the state of debconf (with all the answers I already gave). Is a backup of /var/cache debconf sufficient for this ?
[toc] | [next] | [standalone]
| From | Andy Smith <andy@strugglers.net> |
|---|---|
| Date | 2021-01-19 16:30 +0100 |
| Message-ID | <Bz17c-3gE-7@gated-at.bofh.it> |
| In reply to | #230848 |
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
[toc] | [prev] | [next] | [standalone]
| From | Erwan David <erwan@rail.eu.org> |
|---|---|
| Date | 2021-01-19 16:40 +0100 |
| Message-ID | <Bz1gS-3jP-23@gated-at.bofh.it> |
| In reply to | #230849 |
Le 19/01/2021 à 16:23, Andy Smith a écrit : > 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 > Thanks for the debconf-get-selections. the dpkg --get-selections is an old command, but I prefer the apt-show manual wich gives only the manually installed packages, installing them will install the dependencies, no problem, but they will be marked as such.
[toc] | [prev] | [next] | [standalone]
| From | Sven Joachim <svenjoac@gmx.de> |
|---|---|
| Date | 2021-01-19 17:40 +0100 |
| Message-ID | <Bz2cW-3VB-19@gated-at.bofh.it> |
| In reply to | #230848 |
On 2021-01-19 16:09 +0100, Erwan David wrote:
> Hello everybody
>
> If I want to be able to fast reinstall a debian after a crash, I
> already backup /etc (including /etc/apt), a file with the output of
> apt-show manual
> to get the list of manually installed packages, /etc, but It would be
> handy to have the state of debconf (with all the answers I already
> gave).
> Is a backup of /var/cache debconf sufficient for this ?
Yes, that should be enough. Note that maintainer scripts which use
debconf should first consult the configuration files in /etc and only
fall back to the debconf database if those do not deliver the necessary
information. That's why the debconf database is located under
/var/cache and not under /var/lib.
Cheers,
Sven
[toc] | [prev] | [standalone]
Back to top | Article view | linux.debian.user
csiph-web