tag 593430 + patch
thanks

2010/8/18 Steve Langasek <vor...@debian.org>:
> Now that apt stores information about automatic installation status of
> packages in its own file in /var/lib/apt/extended_states, backups should
> be taken of this file the same as is done for /var/lib/dpkg/status and
> /var/lib/aptitude/pkgstates.

"Now"… :)
(hint: included since APT 0.6.44.2exp1 released on 3 Jul 2006.)
SCNR

>>>>>>>
--- debian/apt.cron.daily       2010-06-09 09:51:21 +0000
+++ debian/apt.cron.daily       2010-08-18 09:05:10 +0000
@@ -320,6 +320,15 @@

 # ------------------------ main ----------------------------

+# Backup the 7 last versions of APT's extended_states file
+# shameless copy from dpkg cron
+if cd /var/backups ; then
+    if ! cmp -s apt.extended_states.0 /var/lib/apt/extended_states; then
+       cp -p /var/lib/apt/extended_states apt.extended_states
+       savelog -c 7 apt.extended_states >/dev/null
+    fi
+fi
+
 # check apt-config exstance
 if ! which apt-config >/dev/null ; then
        exit 0

<<<<<<<

That is all we need, right?

> Strangely, /etc/cron.daily/apt does backups of /var/cache/apt and *not*
> of /var/lib/apt, even though all information in /var/cache is supposed to
> be recoverable if deleted!

As far as i know it is the content of /var/cache/apt/archives which can
be backup and which is not always recoverable, even if you have an
internet connection. Its easier now with snapshot.debian.net to recover
the content coming from the official archive for any given time, but other
more or less official archives aren't tracked by it (volatile,
security, backports)
and historical thirdparty stuff isn't always available either…


Best regards,

David Kalnischkies



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to