>On my 16GB holding disk I have a dump image of about 12.5GB made by
>amanda2.4.1p1 (tar1.12 + amanda patches, chuncksize of 1GB, software
>compression enabled) that is too big for my single tapes (DDS3 - 12GB). ...
>I was
>looking for a way to save on (multiple?) tapes this dump image with amanda
>or linux tools, possibly saving amanda index and/or restore functionality.
We have the same type of problem and here's what we do (warning --
this is a **major** PITA):
* Go to the holding disk directory and rename the tail end chunks
out of the directory until it is smaller than your tape size (e.g.
mv $f.X ../$f.X).
* Run the following program in the directory with all the remaining
chunks as the argument list, e.g.:
cd /holding/20010506
amlink $f*
This will make the last file the end of the list instead of pointing
off to the first chunk you renamed out of the directory.
* Run amflush to kick the holding disk chunks off to tape. Amanda
won't really care that the image is "short".
* Use dd (bs=32k) to write the other chunks to another scratch tape.
Now for the bad part (if the above hasn't scared you off yet).
To restore, you'll have to reload this image in pieces into the holding
disk and go from there by hand. Amrecover won't work (it should, but
it doesn't). You can use it to pick out the tapes that are needed,
but it will not handle bringing in the two (or more) pieces.
Use amrestore to bring in the big chunk from the tape Amanda knows about
(if you're running on Linux, you'll have to do other magic to split the
image into chunks < 2 GBytes). Then dd back in the other chunks from
the second tape. Finally, run amlink again to link them back together
and then you should be able to run amrestore on the first chunk to pipe
the whole file into your restore program.
I told you it was icky.
Warning: the amlink program below is a quick hack. I've been using it
for a while, but you should carefully test it in a scratch directory
with just the first 32 KByte headers to make sure it works right.
Eventually I'll rewrite it as a real Amanda program.
>Alessio Brezigar
John R. Jackson, Technical Software Specialist, [EMAIL PROTECTED]
amlink.c