Operating System - HP-UX
1846619 Members
1616 Online
110256 Solutions
New Discussion

Re: correct tape loaded script?

 
George_Dodds
Honored Contributor

correct tape loaded script?

I need to write a script that will check to see if the correct tape is loaded before it runs fbackup.

I run backups monday to friday so the script could check date against the tape and if it is 7 days between the dates then it is the right tape for that day.

ie-

Script reads tape header or file on tape for info

Checks date on system against current tape loaded

If correct tape runs fbackup

If incorrect sends email to admin.

After backup finishes tape is ejected.


Thats a rough idea of what i'm thinking to make sure the right tape gets overwritten.

if anyone has any better/simpler ideas on how i can implement this or if you allready have something in place( and scripts to blag!)

i'm getting netbackup in a few months time but i need a bit extra security for piece of mind till then.

Thanks in advance

George
3 REPLIES 3
Michael Schulte zur Sur
Honored Contributor

Re: correct tape loaded script?

Hi,

we use 31 tapes numbered from 1-31 for each day of the month. Just insert the tape with the right number and you have no problem.

What do you want to do, if in your szenrario you have to exchange a tape because it as gone bad?

hth,

Michael
George_Dodds
Honored Contributor

Re: correct tape loaded script?

I'm trying make sure there are no problems while i'm away on holiday.

Even the numbering system aint idiot proof, which is why i'd like the system to check that the right tape is loaded.

Ta

George
Mark Ellzey
Valued Contributor

Re: correct tape loaded script?

George,

If you are always using fbackup to do these backups, you can use frecover to retrieve the tape label that fbackup writes on every tape. See the man page on frecover -V . Once you have the "Time:" field, you can use A. Clay Stephenson's caljd.sh date hammer to determine if the tape in the drive is the correct one.

Regards,
Mark