Your script is beautiful, but on my server it didn't works. i have changed the path correctly, but it give me this error:
: bad interpreter: No such file or directory I'd like to use your script, because is better than my very simple script (shown below) :) ---------------------------------------------------------- #!/bin/sh ls /etc/amanda/ echo 'Give me config name: ' read CONFIG cd `amgetconf $CONFIG indexdir` echo 'Give me filename or regular expression to find it: ' read FNAME echo 'Searching... please, wait... when finished, look at timpestamp' zgrep $FNAME */*/*|more echo 'Give me timestamp from the result of search (ex. 20050607): ' read TIMESTMP echo 'Tape label: ' grep $TIMESTMP /etc/amanda/bkalfa/tapelist echo 'Now you have the path, filename and tape label, you can restore file(s) la unching amrecover' ---------------------------------------------------------- best regards, Giovanni -----Messaggio originale----- Da: Anthony Valentine [mailto:[EMAIL PROTECTED] Inviato: gioved� 9 giugno 2005 22.30 A: Montagni, Giovanni Cc: [email protected] Oggetto: Re: Search file in amanda database Quite some time ago, I wrote a script to do this. It still works on my system, but I am still running 2.4.2p2 on AIX. I can't promise that it will work for you, but here it is if you want to try. Anthony Montagni, Giovanni wrote: > Hi to all! > I've read the docs, searched through the web, but i cannot find the answer to > this question: > > is possible to search a file in amanda database? for example i have a file > called pippo.sh backed up somewhere in a tape i don't rebember. i only know > filename. > Can i do a search to find the tape and the path of pippo.sh? > > thanks for your help, > > Montagni Giovanni > >
