Amanda-Users

Re: re-create index files

2003-05-19 09:53:35
Subject: Re: re-create index files
From: Jon LaBadie <jon AT jgcomp DOT com>
To: amanda-users AT amanda DOT org
Date: Mon, 19 May 2003 09:51:52 -0400
On Mon, May 19, 2003 at 01:48:41PM +0200, Per Nothagen, Triacon AB wrote:
> Is it possble to re-create amanda index files from the tape.
> 
> The reason I ask is that I do a level 0 backup of the root filesystem 
> containing all amanda files and then I do a level 1 backup of a "work" 
> filesystem. Both filesystems are on the same disk. When the backup is made 
> it first backs up the root filesystem and then the "work" filesystem. The 
> order seems to be determined from alphabetic sort of the disklist file and 
> not the order the are read from the file. This means that the index file 

If using a recent version, check out "dumporder" and "taperalgo" in amanda.conf.
And if the two DLE's are on the same disk spindle, make sure they are not
backed up at the same time with a "spindle number" in your disklist.

AFAIK, the index is just a "table of contents" made by sending the dump
data through the same program(s) that created it.  There may be a bit
of stream editing, I'm not sure.  So assuming the dump was made by
tar and gzip, you should be able to do something like:

  $ <position the tape at the start of a dump file with mt>

  $ dd if=<tape device> bs=32k skip=1 |
       gzip -dc  |
       gtar tf - |
       sed 's/^\.//' |       # not sure, but I think a leading dot must be 
removed
       gzip > <indexfile of your naming>


Of course, someone else will probably say it is easier with amrestore
than separate commands, or there is already a feature to do this.

-- 
Jon H. LaBadie                  jon AT jgcomp DOT com
 JG Computing
 4455 Province Line Road        (609) 252-0159
 Princeton, NJ  08540-4322      (609) 683-7220 (fax)

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