Re: A pipe dream?

1999-01-27 Thread Stephen Pitts
On Tue, Jan 26, 1999 at 06:58:20PM -0500, Mitch Blevins wrote:
 In foo.debian-user, you wrote:
  
  That is basically what I do. I back up my /etc tree and my /home tree to a 
  zip. I do a complete backup once a week in a cron job and it still all fits 
  on 
  one zip.
  
  It does not require much of script
  
  tar -cf /zip/home.tar.gz -C /home .
  tar -cf /zip/etc.tar.gz -C /etc .
 
 You may want to also add a line to the top of this script:
 
 dpkg --get-selections  /etc/my_packages.dat
 
 so that you can easily recreate the installed packages on your system
 (which your /etc backup has the config files for...)
 
 -Mitch
 
 
 -- 
 Unsubscribe?  mail -s unsubscribe [EMAIL PROTECTED]  /dev/null
 
Interesting idea. I'm getting a CD-RW soon and may try that. I'd backup two 
more directories:
/var - (dpkg databases, mysql data, web data)
/usr/local - a whole lot of stuff I've installed and compiled myself
-- 
Stephen Pitts
[EMAIL PROTECTED]
webmaster - http://www.mschess.org


Re: A pipe dream?

1999-01-27 Thread Will Lowe
 If anyone can see something wrong with such an idea - or, better still, if
 someone is well on the way to producing such a tool - I would be pleased to
 hear about it.

Nope.  Makes perfect sense.  You can also do

dpkg --get-selections some_file_name

to back up your list of installed/selected file.

When you need to restore,  restore some_file_name,  do

dpkg --set-selections  some_file_name

to re-select all of the packages you had installed before the crash,  and 
run apt-get or dselects install option to get them all back.


Will


--
| [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED]   |
|   http://www.cis.udel.edu/~lowe/   |
|PGP Public Key:  http://www.cis.udel.edu/~lowe/index.html#pgpkey|
--
|   You think you're so smart,  but I've seen you naked  |
|  and I'll prob'ly see you naked again ...  |
| --The Barenaked Ladies,  Blame It On Me  |
--


Re: A pipe dream? (a.k.a. File Backups)

1999-01-27 Thread Jiri Baum
Steve Lamb wrote:
 On Tue, 26 Jan 1999 15:14:56 -0500, Harrison, Shawn wrote:

 Much of what is customized or specific in the system is found in the
 /etc directory, and then all of your data files should be in the /home
 directory.  So if you back up those two trees, you'll be mostly there, I
 would think.

As others have pointed out, you'd probably want to backup /var and also
/usr/local (if it isn't part of /var). It might be worthwhile to have a
read through the FSSTND, just to check we aren't all forgetting something.

 This is not entirely true.  It ignores things like, o, just an
 example here...  /var/majordom and /usr/lib/listar.  Both are mailing
 lists that keep data in those directories that people might want.  

Wouldn't that be a bug? Saving data in /usr, I mean?


HTH - HAND

Jiri


Re: A pipe dream?

1999-01-27 Thread G . B . Stott
Hi there,

Many thanks to all those who offered suggestions; I am very grateful.
Obviously some had access to more information than I have been able to find
- such as documentation on the `get-selections' and `put-selections' options
for dpkg. Time for me to go searching :-)

Barrie.


A pipe dream?

1999-01-26 Thread G . B . Stott
Hi there,

I have an idea and wondered if there was some vital flaw in my scheme that
skilled folk like you could spot.

My linux box is completely stand-alone and apart from a bit of ftp, most of
my stuff comes from Debian CDs. I wondered whether I could cut down what I
backup realising that much is already on my CDs. Obviously, I would still
have to backup configuration files but, generally, these are a small part of
a package.

If anyone can see something wrong with such an idea - or, better still, if
someone is well on the way to producing such a tool - I would be pleased to
hear about it.

Barrie.


Re: A pipe dream? (a.k.a. File Backups)

1999-01-26 Thread Harrison, Shawn
Much of what is customized or specific in the system is found in the 
/etc directory, and then all of your data files should be in the /home 
directory. So if you back up those two trees, you'll be mostly there, I 
would think.

==
[EMAIL PROTECTED] 
==



Re: A pipe dream?

1999-01-26 Thread Michael Procario

That is basically what I do. I back up my /etc tree and my /home tree to a 
zip. I do a complete backup once a week in a cron job and it still all fits on 
one zip.

It does not require much of script

tar -cf /zip/home.tar.gz -C /home .
tar -cf /zip/etc.tar.gz -C /etc .



 
__

Michael Procario   EMAIL: [EMAIL PROTECTED]
Department of Physics  PHONE: 412/268-3887
Carnegie Mellon University  

  Another casualty of applied metaphysics
__






Re: A pipe dream? (a.k.a. File Backups)

1999-01-26 Thread Paul Huygen
Harrison, Shawn [EMAIL PROTECTED] wrote
Much of what is customized or specific in the system is found in the 
/etc directory, and then all of your data files should be in the /home 
directory. So if you back up those two trees, you'll be mostly there, I 
would think.

You should also consider the tree under /usr/local.



Re: A pipe dream? (a.k.a. File Backups)

1999-01-26 Thread Steve Lamb
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Whoops, forgot to send this to the list.

==BEGIN FORWARDED MESSAGE==
From: Steve Lamb [EMAIL PROTECTED]
To: Harrison, Shawn [EMAIL PROTECTED]
Date: Tue, 26 Jan 1999 13:15:40 -0800
Reply-To: Steve Lamb [EMAIL PROTECTED]

On Tue, 26 Jan 1999 15:14:56 -0500, Harrison, Shawn wrote:

Much of what is customized or specific in the system is found in the /etc
directory, and then all of your data files should be in the /home directory.
So if you back up those two trees, you'll be mostly there, I would think.

This is not entirely true.  It ignores things like, o, just an
example here...  /var/majordom and /usr/lib/listar.  Both are mailing lists
that keep data in those directories that people might want.  

For backing up and keeping all the custom stuff on a machine it is
easier to specify exlcudes to a catchall than trying to include everything.  

Directories that can, for the most part, be excluded from a
comprehensive backup:

/dev
/bin
/sbin
/usr/bin
/usr/sbin
/usr/X11R?

- -- 
 Steve C. Lamb | I'm your priest, I'm your shrink, I'm your
 ICQ: 5107343  | main connection to the switchboard of souls.
- ---+-


===END FORWARDED MESSAGE===

- -- 
 Steve C. Lamb | I'm your priest, I'm your shrink, I'm your
 ICQ: 5107343  | main connection to the switchboard of souls.
- ---+-
-BEGIN PGP SIGNATURE-
Version: PGPsdk version 1.0 (C) 1997 Pretty Good Privacy, Inc

iQA/AwUBNq5Cl3pf7K2LbpnFEQK9igCg6VL4hYU/D/g7dy9xOzhF8vDsXVgAoJDU
o6HSCEQ/ka0u0PKO8Ho29qhM
=ERkZ
-END PGP SIGNATURE-



Re: A pipe dream?

1999-01-26 Thread Mitch Blevins
In foo.debian-user, you wrote:
 
 That is basically what I do. I back up my /etc tree and my /home tree to a 
 zip. I do a complete backup once a week in a cron job and it still all fits 
 on 
 one zip.
 
 It does not require much of script
 
 tar -cf /zip/home.tar.gz -C /home .
 tar -cf /zip/etc.tar.gz -C /etc .

You may want to also add a line to the top of this script:

dpkg --get-selections  /etc/my_packages.dat

so that you can easily recreate the installed packages on your system
(which your /etc backup has the config files for...)

-Mitch