Amanda-Users

Re: Making an index of a tape after the fact...

2003-08-29 10:52:40
Subject: Re: Making an index of a tape after the fact...
From: Paul Bijnens <paul.bijnens AT xplanation DOT com>
To: AMANDA Users <amanda-users AT amanda DOT org>
Date: Fri, 29 Aug 2003 16:43:56 +0200
David Barcelo wrote:

Is it possible to make an index of a tape after the backup?


Do you mean "amtoc", to generate a list of the images on tape,
or do you mean reading the tape, and generating such a list from it:

        while mt -f /dev/nst0 fsf 1
        do dd bs=32k if=/dev/nst0 | head -1
        done

Or do you mean to generate the index-files into the image needed
for amrecover?  It is possible, but I've never done it.
A script that reads each image and generates a toc (e.g. for tar
with the -t option), and does a little postprocessing with sed to
strip the initial dot and save it in a gzip-ed file named
  ~amanda/CONFIG/index/HOSTNAME/_disk_name/YYYYMMDD_L.gz
would probably work.

--
Paul Bijnens, Xplanation                            Tel  +32 16 397.511
Technologielaan 21 bus 2, B-3001 Leuven, BELGIUM    Fax  +32 16 397.512
http://www.xplanation.com/          email:  Paul.Bijnens AT xplanation DOT com
***********************************************************************
* I think I've got the hang of it now:  exit, ^D, ^C, ^\, ^Z, ^Q, F6, *
* quit,  ZZ, :q, :q!,  M-Z, ^X^C,  logoff, logout, close, bye,  /bye, *
* stop, end, F3, ~., ^]c, +++ ATH, disconnect, halt,  abort,  hangup, *
* PF4, F20, ^X^X, :D::D, KJOB, F14-f-e, F8-e,  kill -1 $$,  shutdown, *
* kill -9 1,  Alt-F4,  Ctrl-Alt-Del,  AltGr-NumLock,  Stop-A,  ...    *
* ...  "Are you sure?"  ...   YES   ...   Phew ...   I'm out          *
***********************************************************************





<Prev in Thread] Current Thread [Next in Thread>