Veritas-bu

[Veritas-bu] RE: About catalog backups...

2005-05-17 08:57:35
Subject: [Veritas-bu] RE: About catalog backups...
From: marek.gorka AT sun DOT com (Marek Gorka)
Date: Tue, 17 May 2005 14:57:35 +0200
I guess I get what you need.

Let's suppose you use one specific slot in the library to store the CATALOG 
backup tape. Write a script (it's for bash) then as follows:

####
# CATAL_TAPE - tape always on slot 3,
CATAL_TAPE=`echo "s s 3" | tldtest -r $CHANGER -d1 /dev/rmt/10cbn -d2 
/dev/rmt/11cbn | grep -i barcode | awk '{print $3}' | cut -c 1-6`

# what's the server name?
HOSTNAME=?

# assign the scanned tape to pool NetBackup (pool nr 1)
vmchange -h $HOSTNAME -p 1 -m $CATAL_TAPE

# define the backups:
bpsyncinfo -M $HOSTNAME -id1 $CATAL_TAPE -d1 hcart -id2 
"/export/indeksy_netbackup" -server $HOSTNAME -bw never -paths 
"/usr/openv/netbackup/db /usr/openv/volmgr/database /usr/openv/var 
/usr/openv/netbackup/bp.conf /usr/openv/volmgr/vm.conf"
#########

Of course you might need to update some of the variables and/or additionaly 
rescan the library.


rgs,
-- 
Marek Gorka
Client Solutions
Sun Microsystems Poland

<Prev in Thread] Current Thread [Next in Thread>