permanent archives, client notification and subdirs

2001-05-10 Thread justinb11

Hi,

I have just got Amanda set up on a server at client machine.

Can anyone help me out with a few questions

1) How do I go about creating a permanent archive of tapes?
I actually want to dump newly created files to tape each at dump via
amanda
(i.e no incrementals, always fulldumps).

I tried setting the following params, but I'm not sure this if this
is right
dumpcycle 0
tapecycle 9  # lots of tapes in the tapecycle...

2) I also want to remove the client files from disk automatically
after they've been archived. However, I'm just not sure how to
determine if a  given set of files/filesystem has been archived from a
client machine.
Any clues on how to do this?

3) Is there a way of dumping subdirectories to disk, rather than just
whole filesystems?

Thanks in advance,
Justin.






Re: permanent archives, client notification and subdirs

2001-05-10 Thread Joshua Baker-LePain

On Thu, 10 May 2001 at 6:30am, [EMAIL PROTECTED] wrote

 1) How do I go about creating a permanent archive of tapes?
 I actually want to dump newly created files to tape each at dump via
 amanda
 (i.e no incrementals, always fulldumps).

 I tried setting the following params, but I'm not sure this if this
 is right
 dumpcycle 0
 tapecycle 9  # lots of tapes in the tapecycle...

Yep, that'll work.

 2) I also want to remove the client files from disk automatically
 after they've been archived. However, I'm just not sure how to
 determine if a  given set of files/filesystem has been archived from a
 client machine.
 Any clues on how to do this?

I'm really not sure what you're trying to accomplish here.  If you
*really* want to delete everything you back up, you could have your backup
script run amanda and then, iff amanda exits normally, parse the disklist
and 'rm -rf' one directory below each disklist entry.  I *STRONGLY*
recommend against this.  Automated rm is a Bad Idea (TM).  Leave the data
there, or remove it by hand.

 3) Is there a way of dumping subdirectories to disk, rather than just
 whole filesystems?

Use GNUtar rather than dump.

-- 
Joshua Baker-LePain
Department of Biomedical Engineering
Duke University




Re: permanent archives, client notification and subdirs

2001-05-10 Thread John R. Jackson

2) I also want to remove the client files from disk automatically
after they've been archived.  ...

I agree with the comments from Joshua Baker-LePain that automatically
doing this is probably dangerous.

One thought about how to do it (but not any safer) would be to get
a catalogue of the dump image from tape after amdump/amflush and then
remove the items it said it found.  This is especially unsafe when using
dump because a catalogue (restore with the 't' option) does not really
read the whole image, but if you use GNU tar and it successfully reads
the whole image, you can be reasonably certain the data is really there.

Depending on what the data is, I'd want to clone the tape (and verify
the clone) so I had at least two copies, though.

Justin.

John R. Jackson, Technical Software Specialist, [EMAIL PROTECTED]