Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Finding backups that have been written to staged disk but not to tape.

Status
Not open for further replies.

jonpbristow

Technical User
Dec 11, 2003
9
Hi

I have just implemeneted a NB 5.1 environment using blade store as a disk staginf unit.

I was wondering if there was a command line command I can run to fin the images that have been written to disk but have yet been duplicated to tape.
 
Did you get a script to do this? I have a one Solaris 8 ksh script that works but still needs some tweaking.
 
no I havent yet got a script to do this , how did you go about it?????
 
The formatting is wrong but you should be able to figure it out.



#/bin/ksh
OPER="test@test1.com" # Set email of those who care
touch /tmp/imagelist
cd /bkupdsk01
for i in `ls *F1`
do
image=`ls $i | awk -F_ '{print $1"_"$2}'`
if [ -f $i.ds ]
then
echo $image sent to tape >> /tmp/imagelist
else
echo $image is not on tape and here is the bpimage result >> /tmp/imagelist
result=`bpimagelist -l -backupid $image | awk -F"*NULL*" '{print $1}'| grep IMAGE`
#result=`bpimagelist -l -backupid $image | awk -F* '{print $1"*"}' | awk -F"" '{print $0}'` # awk 'BEGIN { FS = "," } ; { print $2 }'
echo $result >> /tmp/imagelist
fi
done
/bin/mailx -s "Images Not on Tape Yet" $OPER < /tmp/imagelist
rm /tmp/imagelist
exit
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top