From: Liviu Andronic on
On Tue, Apr 20, 2010 at 9:27 PM, B. Alexander <storm16(a)gmail.com> wrote:
> If you are asking what I think you are asking, as in which files would you
> need to restore your system in the event that you lose your apt and dpkg
> databases, then I do the following:
>
> /var/backups
> /var/cache/apt (less /var/cache/apt/archives)
> /var/lib/apt
> /var/lib/dpkg
>
> This will give you enough that apt-get update, etc works.
>
Nice, thanks! I've just configured a weekly backup schedule in BackInTime.


> Now the rules have
> probably changed if you use aptitude as I believe it creates/uses a
> different database.
>
Could anyone advise on what additional files should be backed up to
suit aptitude? Thank you
Liviu


--
To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org
Archive: http://lists.debian.org/m2s68b1e2611004201341u5d3dd886ud52cb0c539a93c4d(a)mail.gmail.com
From: B. Alexander on
No worries. As I said, this will work for apt, but I'm not sure where
aptitude keeps its files. A quick consult of the man page and a look at the
filesystem shows /var/lib/aptitude, however, I think it also uses Xapian.

I use BackupPC, since it does multiple machines.

--b

On Tue, Apr 20, 2010 at 4:41 PM, Liviu Andronic <landronimirc(a)gmail.com>wrote:

> On Tue, Apr 20, 2010 at 9:27 PM, B. Alexander <storm16(a)gmail.com> wrote:
> > If you are asking what I think you are asking, as in which files would
> you
> > need to restore your system in the event that you lose your apt and dpkg
> > databases, then I do the following:
> >
> > /var/backups
> > /var/cache/apt (less /var/cache/apt/archives)
> > /var/lib/apt
> > /var/lib/dpkg
> >
> > This will give you enough that apt-get update, etc works.
> >
> Nice, thanks! I've just configured a weekly backup schedule in BackInTime.
>
>
> > Now the rules have
> > probably changed if you use aptitude as I believe it creates/uses a
> > different database.
> >
> Could anyone advise on what additional files should be backed up to
> suit aptitude? Thank you
> Liviu
>
From: Ron Johnson on
On 2010-04-20 15:27, B. Alexander wrote:
> If you are asking what I think you are asking, as in which files would you
> need to restore your system in the event that you lose your apt and dpkg
> databases, then I do the following:
>
> /var/backups
> /var/cache/apt (less /var/cache/apt/archives)
> /var/lib/apt
> /var/lib/dpkg
>
> This will give you enough that apt-get update, etc works. Now the rules have
> probably changed if you use aptitude as I believe it creates/uses a
> different database.
>

Honestly, though, how often does that happen?

Maybe it's because I "just" run a workstation, or maybe because
disks are so huge nowadays, or I'm just a fool, but I leave var/
under / so anything catastrophic as to trash var/ will best be
solved by a complete reinstall.

--
Dissent is patriotic, remember?


--
To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org
Archive: http://lists.debian.org/4BCE3031.50404(a)cox.net
From: T o n g on
On Tue, 20 Apr 2010 17:52:33 -0500, Ron Johnson wrote:

> so anything catastrophic as to trash var/ will best be solved by a
> complete reinstall.

2nd to that. package downgrading would never be "quickly and painlessly".
Do a complete system restore, that'd be more quickly and painlessly than
downgrading.

--
Tong (remove underscore(s) to reply)
http://xpt.sourceforge.net/techdocs/
http://xpt.sourceforge.net/tools/


--
To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org
Archive: http://lists.debian.org/hqlcol$qh7$3(a)dough.gmane.org
From: Liviu Andronic on
On Wed, Apr 21, 2010 at 12:18 AM, T o n g <mlist4suntong(a)yahoo.com> wrote:
> On Tue, 20 Apr 2010 17:52:33 -0500, Ron Johnson wrote:
>> so anything catastrophic as to trash var/ will best be solved by a
>> complete reinstall.
>
> 2nd to that. package downgrading would never be "quickly and painlessly".
> Do a complete system restore, that'd be more quickly and painlessly than
> downgrading.
>
I am sorry but I don't quite follow. What could go wrong when trying
to downgrade a couple of packages (one of which misbehaves following
an upgrade)?
Liviu


--
To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org
Archive: http://lists.debian.org/y2w68b1e2611004210039vaff732abs80391fe41de6219b(a)mail.gmail.com