>Is there any way in amrecover to recursively add every instance of a
>filename in a set of directories? ...
No. I just took a note to myself yesterday to add a "find" command to
at least find files with a given pattern. That could be extended to
also add them to the extraction list.
Note that you're likely to have trouble with the vast number of files
you want to restore though. Amanda has to live within OS command line
(number of arguments and total length) limits. If you blow by those,
it's not going to work.
My guess is you'll have to make multiple passes at the image and use
something like xargs to grab batches at a time. Something like this:
zcat the-index-files | grep the-file-pattern > the-file-list
xargs get-some-files < the-file-list
#!/bin/sh
# get-some-files
mt -f /dev/whatever rewind
mt -f /dev/whatever fsf NNN
amrestore -p /dev/whatever | restore xbf 2 - "$@"
Note that this mis-handles files with blanks in their name, etc.
If that's a problem, replace with sufficient quantities of Perl.
>-n
John R. Jackson, Technical Software Specialist, [EMAIL PROTECTED]