cancel
Showing results for 
Search instead for 
Did you mean: 

Total amount of data written to tape

Saheer_Kader
Level 3
we have netbackup 5.1 MP6 running on a solaris box and 90 windows/unix backup clients. My backup policy is daily-differential and weekly-full, is there any way to know the total amount of data writting to tapes in my daily and weekly backup?
Thank you
1 REPLY 1

Joe_Despres
Level 6
Partner
The first thing I would do is get the tapes that were written to in the past 24hr(s):

bpimagelist -A -media -hoursago 24 | sed '1,3d'| awk '{print $1}' > /tmp/tapes_written_in_24.txt

Then I would run available_media  and match that to the tapes written to...

/usr/openv/netbackup/bin/goodies/available_media > /tmp/TAPEs.txt

Fire off a for loop and pll out what you need from TAPEs.txt:

for i in `cat /tmp/tapes_written_in_24.txt`
do
echo "$i \c"
grep $i /tmp/TAPEs.txt | awk '{print $8}'
done

And wa-la.....  1st column is your volser and the second is the amount in kb(s)..

Joe Despres