1834552 Members
3369 Online
110069 Solutions
New Discussion

Re: about end of tape

 
SOLVED
Go to solution
benseghir_1
Advisor

about end of tape

in my tape,I have store a lot of backup with
ls dir |cpio -ocv > /dev/nst0 in the same tape.then in my tape I have a lot of LEOT , i
want to write shell script to know, if this file is in the tape, then i need to test the end of the tape before doing any search
5 REPLIES 5
Borislav Perkov
Respected Contributor

Re: about end of tape

Hi,
What kind of tape you have?
There are EOF marks between two backups or files usually on DDS, DAT or DLT.
Regards,
Borislav
benseghir_1
Advisor

Re: about end of tape

i have a DAT tape
Borislav Perkov
Respected Contributor
Solution

Re: about end of tape

Try commands:

mt -f status
mt -f fsf 1

and send the output.
mayby this can solve your problem in the script
.
.
mt -f fsf 1
if [ $? = 0 ] # there is next start of backup file
then
... commands
endif

Regards

benseghir_1
Advisor

Re: about end of tape

thank for your help
your proposition was very usefull
thank you
Borislav Perkov
Respected Contributor

Re: about end of tape

Hi benseghir,
As I can see from your profile you haven't assigned any points to anyone who answered your questions. If you don't know how to do this please follow the link:

http://forums1.itrc.hp.com/service/forums/helptips.do?#34

and please close the treads if you get solution for them.

Regards,
Borislav