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!

NetBackup DB backup to another Pool

Status
Not open for further replies.

cstorm

MIS
Oct 1, 2001
69
US
NBU Gurus,

I have NBU configured to write DB backups to two alternating tapes. These tapes stay in the silo at all times (NetBackup Volume Pool).

I also want to write DB backups to another pool that gets rotated offsite each day. How do you specify a pool to use for DB backups from the command line?

Thanks for the help!
 
Document ID: 239811
E-Mail this document to a colleague
How to configure and backup NetBackup catalogs from command line.
--------------------------------------------------------------------------------
Details:
I. Configuration of the catalog backup from command line (usually performed on the Master server)

The configuration phase of this objective entails:

a) Specifying the media IDs to which the catalog backups are to be written. Configuring one media implies that catalog backup will be performed to that media each time; configuring two medias, however, will allow the catalog backups to be alternated from one tape to the other. The example below illustrates two medias A00000 and A00001 being used for a catalog backup. The UNIX command line for this is as follows:
#/usr/openv/netbackup/bin/admincmd/bpsyncinfo -server <master_server> -id1 A00000 -d1 <densitystr> -id2 A00001 -d2 <densitystr>


where <master_server> is the name of the Master server and <densitystr> is the media type (e.g. 4mm, dlt, etc)


b) Specifying when to perform the catalog backup. There are three options available: Never (must be manually initiated), After each successful Backup Schedule and After any successful Backup/Archive. From a command line perspective, this is has to be viewed as manual. The corresponding parameter for this option is "bw" (Backup When). Thus the UNIX command line is as follows:
#/usr/openv/netbackup/bin/admincmd/bpsyncinfo -bw never



c) Specifying the paths to be backed up. This should include NetBackup media databases of the Media servers as well as the databases of the Master server such as image and volume databases. The command to incorporate a typical example of a set of paths is as follows:
#/usr/openv/netbackup/bin/admincmd/bpsyncinfo -paths "<master_server>:/usr/openv/netbackup/db <master_server>:/usr/openv/volmgr/database <media_server>:/usr/openv/netbackup/db/media <media_server>:/usr/openv/volmgr/database"


where <master_server> is the name of the Master server and <media_server> is the name of the Media server.

Note: To ensure a list of multiple paths, the -paths option has to be used in conjunction with "" and a space between each path.


In order to confirm that all of the above configurations are successfully in place, run and verify the output of the command:
#/usr/openv/netbackup/bin/admincmd/bpsyncinfo -U



Additionally, the file which contains all of the above information is called the sync file which can be found under "/usr/openv/netbackup/db/config". This is the file which is referenced and called by the bpsyncinfo command.


II. Starting the catalog backup from command line

To start the catalog backup from the command line, use the command:
#/usr/openv/netbackup/bin/admincmd/bpsyncinfo -M <master_server> -doBackup

The above procedure is similar for Windows NT/WIN2K except for the paths and the backslashes (\) to replace the fowardslashes.



Bob Stump
Incorrigible punster -- Do not incorrige
 
I have two scripts see below that are run from crontab, I have a total of 14 DB tape that are rotated daily, that way we can offsite them.

00 17 * * * /usr/openv/netbackup/bin/eject_cat.sh
01 00 * * * /usr/openv/netbackup/bin/rotate_cat.sh

----Script 1---------------

/usr/openv/netbackup/bin/rotate_cat.sh

#!/bin/ksh

DAY=`date +%a`

if [ $DAY = "Mon" ];then

/usr/openv/netbackup/bin/admincmd/bpsyncinfo -server sscbkpb1 -id1 SSC001 -d1 hc
art -id2 SSC002 -d2 hcart

elif [ $DAY = "Tue" ];then

/usr/openv/netbackup/bin/admincmd/bpsyncinfo -server sscbkpb1 -id1 SSC220 -d1 hc
art -id2 SSC221 -d2 hcart

elif [ $DAY = "Wen" ];then

/usr/openv/netbackup/bin/admincmd/bpsyncinfo -server sscbkpb1 -id1 SSC288 -d1 hc
art -id2 SSC289 -d2 hcart

elif [ $DAY = "Thu" ];then

/usr/openv/netbackup/bin/admincmd/bpsyncinfo -server sscbkpb1 -id1 SSC338 -d1 hc
art -id2 SSC339 -d2 hcart

elif [ $DAY = "Fri" ];then

/usr/openv/netbackup/bin/admincmd/bpsyncinfo -server sscbkpb1 -id1 SSC340 -d1 hc
art -id2 SSC341 -d2 hcart

elif [ $DAY = "Sat" ];then

/usr/openv/netbackup/bin/admincmd/bpsyncinfo -server sscbkpb1 -id1 SSC342 -d1 hc
art -id2 SSC343 -d2 hcart

elif [ $DAY = "Sun" ];then

/usr/openv/netbackup/bin/admincmd/bpsyncinfo -server sscbkpb1 -id1 SSC344 -d1 hc
art -id2 SSC345 -d2 hcart

fi
---End Script 1---------------------------------

---Script 2-----

/usr/openv/netbackup/bin/eject_cat.sh
#!/bin/ksh

DAY=`date +%a`

if [ $DAY = "Mon" ];then

/usr/openv/volmgr/bin/vmchange -res -m SSC344 -mt hcart -rt tld -rh sscbkpb1 -rc
1 0 -rc2 0 -e -sec 5
/usr/openv/volmgr/bin/vmchange -res -m SSC345 -mt hcart -rt tld -rh sscbkpb1 -rc
1 0 -rc2 0 -e -sec 5

elif [ $DAY = "Tue" ];then

/usr/openv/volmgr/bin/vmchange -res -m SSC001 -mt hcart -rt tld -rh sscbkpb1 -rc
1 0 -rc2 0 -e -sec 5
/usr/openv/volmgr/bin/vmchange -res -m SSC002 -mt hcart -rt tld -rh sscbkpb1 -rc
1 0 -rc2 0 -e -sec 5

elif [ $DAY = "Wed" ];then

/usr/openv/volmgr/bin/vmchange -res -m SSC220 -mt hcart -rt tld -rh sscbkpb1 -rc
1 0 -rc2 0 -e -sec 5
/usr/openv/volmgr/bin/vmchange -res -m SSC221 -mt hcart -rt tld -rh sscbkpb1 -rc
1 0 -rc2 0 -e -sec 5

elif [ $DAY = "Thu" ];then

/usr/openv/volmgr/bin/vmchange -res -m SSC288 -mt hcart -rt tld -rh sscbkpb1 -rc
1 0 -rc2 0 -e -sec 5
/usr/openv/volmgr/bin/vmchange -res -m SSC289 -mt hcart -rt tld -rh sscbkpb1 -rc
1 0 -rc2 0 -e -sec 5

elif [ $DAY = "Fri" ];then

/usr/openv/volmgr/bin/vmchange -res -m SSC338 -mt hcart -rt tld -rh sscbkpb1 -rc
1 0 -rc2 0 -e -sec 5
/usr/openv/volmgr/bin/vmchange -res -m SSC339 -mt hcart -rt tld -rh sscbkpb1 -rc
1 0 -rc2 0 -e -sec 5

elif [ $DAY = "Sat" ];then

/usr/openv/volmgr/bin/vmchange -res -m SSC340 -mt hcart -rt tld -rh sscbkpb1 -rc
1 0 -rc2 0 -e -sec 5
/usr/openv/volmgr/bin/vmchange -res -m SSC341 -mt hcart -rt tld -rh sscbkpb1 -rc
1 0 -rc2 0 -e -sec 5

elif [ $DAY = "Sun" ];then

/usr/openv/volmgr/bin/vmchange -res -m SSC342 -mt hcart -rt tld -rh sscbkpb1 -rc
1 0 -rc2 0 -e -sec 5
/usr/openv/volmgr/bin/vmchange -res -m SSC343 -mt hcart -rt tld -rh sscbkpb1 -rc
1 0 -rc2 0 -e -sec 5

fi

---- End script 2 ---------


Mike

"A foolproof method for sculpting an elephant: first, get a huge block of marble, then you chip away everything that doesn't look like an elephant.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top