Re: Full System Restore with tar: Reminder!

2001-01-19 Thread Bob Hilliard
Ethan Benson [EMAIL PROTECTED] writes:
 dpkg --get-selections  foo does not create a full backup, it only
 creates a backup of installed packages, NOT removed packages. =20
 
 dpkg --get-selections \*  full will give you a true full backup.=20
 
 do both commands and then diff the two files. =20

 Why do this?  

 If I purge (I _never_ remove) a package it is because I don't
want it on my system anymore.  I run a new dpkg--get-selectionsfoo
whenever I remove a package. 

Bob
-- 
   _
  |_)  _  |_   Robert D. Hilliard  [EMAIL PROTECTED]
  |_) (_) |_)  1294 S.W. Seagull Way   [EMAIL PROTECTED]
   Palm City, FL  USA  GPG Key ID: 390D6559 
   PGP Key ID: A8E40EB9




Re: Full System Restore with tar: Reminder!

2001-01-19 Thread Ethan Benson
On Fri, Jan 19, 2001 at 10:13:59AM -0500, Bob Hilliard wrote:
 Ethan Benson [EMAIL PROTECTED] writes:
  dpkg --get-selections  foo does not create a full backup, it only
  creates a backup of installed packages, NOT removed packages. =20
  
  dpkg --get-selections \*  full will give you a true full backup.=20
  
  do both commands and then diff the two files. =20
 
  Why do this?  
 
  If I purge (I _never_ remove) a package it is because I don't
 want it on my system anymore.  I run a new dpkg--get-selectionsfoo
 whenever I remove a package. 

that is my point, purges or removes will NOT be saved with dpkg
--get-selections  foo

the \* is what catches the purged and removed packages and adds those
to the list.  otherwise your selections file will only contain
installs, and will only cause packages you installed to be reinstalled
on a restoration, it will NOT causes packages you removed/purged to
be removed/purged. 

-- 
Ethan Benson
http://www.alaska.net/~erbenson/


pgpIpYaIE0guW.pgp
Description: PGP signature


Re: Full System Restore with tar: Reminder!

2001-01-18 Thread Bob Hilliard
csj [EMAIL PROTECTED] writes:

 
  dpkg --get-selections  filename
  dpkg --set-selections  filename
 
  Bob
 
 Yes, but where would dpkg fetch those files? Can it fetch it, say, 
 from my local mirror?

 No.  It gets the information from /var/lib/dpkg/status.  You
should run dpkg --get-selections periodically, and keep it on a
separate partition, a floppy, or some other safe place.

 Once your /var is hosed, it's too late to do it.  But it's a lot
quicker and easier to run dpkg --get-selections than to make a full
backup.

Bob
-- 
   _
  |_)  _  |_   Robert D. Hilliard  [EMAIL PROTECTED]
  |_) (_) |_)  1294 S.W. Seagull Way   [EMAIL PROTECTED]
   Palm City, FL  USA  GPG Key ID: 390D6559 
   PGP Key ID: A8E40EB9




Re: Full System Restore with tar: Reminder!

2001-01-18 Thread Ethan Benson
On Wed, Jan 17, 2001 at 03:42:06PM -0500, Bob Hilliard wrote:
 csj [EMAIL PROTECTED] writes:
 
  
   dpkg --get-selections  filename
   dpkg --set-selections  filename
  
   Bob
  
  Yes, but where would dpkg fetch those files? Can it fetch it, say, 
  from my local mirror?
 
  No.  It gets the information from /var/lib/dpkg/status.  You
 should run dpkg --get-selections periodically, and keep it on a
 separate partition, a floppy, or some other safe place.
 
  Once your /var is hosed, it's too late to do it.  But it's a lot
 quicker and easier to run dpkg --get-selections than to make a full
 backup.

dpkg --get-selections  foo does not create a full backup, it only
creates a backup of installed packages, NOT removed packages.  

dpkg --get-selections \*  full will give you a true full backup. 

do both commands and then diff the two files.  

-- 
Ethan Benson
http://www.alaska.net/~erbenson/


pgpyDZwrl8cQ4.pgp
Description: PGP signature


Re: Full System Restore with tar: Reminder!

2001-01-17 Thread csj
On Wednesday 17 January 2001 02:16, Bob Hilliard wrote:
 [EMAIL PROTECTED] writes:
  At 16 Jan 2001 13:38:25 +0200 , Kalle Olavi Niemitalo
  [EMAIL PROTECTED] wrote about system restores...
 
  ...and I'd like to continue the theme. If the worst were to
  happen, what would be the best way of getting the same installed
  packages as before? Is it possible to give dselect (or apt-get if
  you're one of /those/ people ;-) a file with a list of packages
  to install? Ideally you should be able to just generate this from
  within your preferred install mechanism and then you could keep
  it somewhere safe and point the re-installation process to it
  and just let it have its wicked way with your Debian CD-ROM (or
  whatever).

 dpkg --get-selections  filename
 dpkg --set-selections  filename

 Bob

Yes, but where would dpkg fetch those files? Can it fetch it, say, 
from my local mirror?



Re: Full System Restore with tar: Reminder!

2001-01-17 Thread kmself
on Thu, Jan 18, 2001 at 02:29:09AM +0800, csj ([EMAIL PROTECTED]) wrote:
 On Wednesday 17 January 2001 02:16, Bob Hilliard wrote:
  [EMAIL PROTECTED] writes:
   At 16 Jan 2001 13:38:25 +0200 , Kalle Olavi Niemitalo
   [EMAIL PROTECTED] wrote about system restores...
  
   ...and I'd like to continue the theme. If the worst were to
   happen, what would be the best way of getting the same installed
   packages as before? Is it possible to give dselect (or apt-get if
   you're one of /those/ people ;-) a file with a list of packages
   to install? Ideally you should be able to just generate this from
   within your preferred install mechanism and then you could keep
   it somewhere safe and point the re-installation process to it
   and just let it have its wicked way with your Debian CD-ROM (or
   whatever).
 
  dpkg --get-selections  filename
  dpkg --set-selections  filename
 
  Bob
 
 Yes, but where would dpkg fetch those files? Can it fetch it, say, 
 from my local mirror?

dpkg doesn't fetch the files, apt-get does, either directly, or through
a front-end (dselect, capt, or my current preference, aptitude).  This
behavior is configurable in /etc/apt/sources.list

-- 
Karsten M. Self kmself@ix.netcom.comhttp://kmself.home.netcom.com/
 What part of Gestalt don't you understand?   There is no K5 cabal
  http://gestalt-system.sourceforge.net/ http://www.kuro5hin.org


pgpqSfpYAuQwY.pgp
Description: PGP signature


Re: Full System Restore with tar: Reminder!

2001-01-17 Thread will trillich
On Thu, Jan 18, 2001 at 02:29:09AM +0800, csj wrote:
 On Wednesday 17 January 2001 02:16, Bob Hilliard wrote:
  [EMAIL PROTECTED] writes:
   At 16 Jan 2001 13:38:25 +0200 , Kalle Olavi Niemitalo
   [EMAIL PROTECTED] wrote about system restores...
  
   ...and I'd like to continue the theme. If the worst were to
   happen, what would be the best way of getting the same installed
   packages as before? Is it possible to give dselect (or apt-get if
   you're one of /those/ people ;-) a file with a list of packages
   to install? Ideally you should be able to just generate this from
   within your preferred install mechanism and then you could keep
   it somewhere safe and point the re-installation process to it
   and just let it have its wicked way with your Debian CD-ROM (or
   whatever).
 
  dpkg --get-selections  filename
  dpkg --set-selections  filename
 
  Bob
 
 Yes, but where would dpkg fetch those files? Can it fetch it, say, 
 from my local mirror?

what the --*-selections options do is tell the debian
packaging gremlins to save and recall the list of
packages you want.

when you use dselect (the slink debian way) it does
basically this kind of 'these packages are to be installed
because the boss says so, and these are to be removed, for
the same reason.'

you could do
dpkg -i some-package-name.here.etc.deb
to install each (any) particular package. i'd bet that when you
use the old dselect to do the [I]nstall portion, it'd tell dpkg
to do just that (and more, probably).

but with apt-get these days, you don't have to worry about
directly chatting with dpkg; once your selections are set,
and your sources.list is alright (use apt-setup for that)
just
apt-get update  and-get upgrade
and you're off to the races. right?

unless i'm wrong about all this, which means you'll have to
learn about it on your own. or at least double-check my say-so.

-- 
also check our handy newbie-friendly links section over at
http://www.eGroups.com/group/newbieDoc

[EMAIL PROTECTED]***http://www.dontUthink.com/



Re: Full System Restore with tar: Reminder!

2001-01-16 Thread Kalle Olavi Niemitalo
[EMAIL PROTECTED] (Jim Dennis) writes:

  (Note: I just try to do an rmdir as the easiest way to detect
  a non-empty directory *and* to detect a non-directory node named
  /proc at the same time.

Modern versions of mount and fsck allow referring to ext2 file systems
by LABEL or GUID (or was it UUID?) in /etc/fstab, so that it doesn't
matter if disks or partitions are added or removed.  When this is done
with the root file system, /proc must be mounted before the root fs is
checked because fsck must scan /proc/partitions.  Because the root fs
is normally read-only at that time, rmdir /proc won't work as a check.

Of course, you could unmount /proc again after checking the root fs,
but that sounds dirty.



Re: Full System Restore with tar: Reminder!

2001-01-16 Thread garyjones
At 16 Jan 2001 13:38:25 +0200 , Kalle Olavi Niemitalo [EMAIL PROTECTED] wrote 
about system restores...

...and I'd like to continue the theme. If the worst were to happen,
what would be the best way of getting the same installed packages as
before? Is it possible to give dselect (or apt-get if you're one of
/those/ people ;-) a file with a list of packages to install? Ideally
you should be able to just generate this from within your preferred
install mechanism and then you could keep it somewhere safe and
point the re-installation process to it and just let it have its 
wicked way with your Debian CD-ROM (or whatever).


Get your own FREE E-mail address at http://www.linuxfreemail.com
Linux FREE Mail is 100% FREE, 100% Linux, and 100% yours!



Re: Full System Restore with tar: Reminder!

2001-01-16 Thread Bob Hilliard
[EMAIL PROTECTED] writes:

 
 At 16 Jan 2001 13:38:25 +0200 , Kalle Olavi Niemitalo [EMAIL PROTECTED] 
 wrote about system restores...
 
 ...and I'd like to continue the theme. If the worst were to happen,
 what would be the best way of getting the same installed packages as
 before? Is it possible to give dselect (or apt-get if you're one of
 /those/ people ;-) a file with a list of packages to install? Ideally
 you should be able to just generate this from within your preferred
 install mechanism and then you could keep it somewhere safe and
 point the re-installation process to it and just let it have its 
 wicked way with your Debian CD-ROM (or whatever).

dpkg --get-selections  filename
dpkg --set-selections  filename

HTH

Bob
-- 
   _
  |_)  _  |_   Robert D. Hilliard  [EMAIL PROTECTED]
  |_) (_) |_)  1294 S.W. Seagull Way   [EMAIL PROTECTED]
   Palm City, FL  USA  GPG Key ID: 390D6559 
   PGP Key ID: A8E40EB9