Veritas-bu

[Veritas-bu] Command-line to change Netbackup DB attributes?

2002-06-26 19:43:16
Subject: [Veritas-bu] Command-line to change Netbackup DB attributes?
From: suen AT cosmos.buffalo DOT edu (Michael Suen)
Date: Wed, 26 Jun 2002 19:43:16 -0400 (EDT)
There is technote talks about how yo configure and backup NetBacup
Catalogs from command line:
ID 239811

Symptom: 

How to configure and backup NetBackup catalogs from command line.  


Solution: 

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.




On Wed, 26 Jun 2002, Fabbro, Andrew P wrote:

> Does anyone know if there is a command-line way to change the Netbackup DB
> backup attributes?  e.g., the db paths, which host it goes to, what media it
> uses, etc.?  bpconfig can be used to change the global Netbackup attributes
> but doesn't cover the DB backup attributes.  I trussed bpadm and it doesn't
> seem to call any other processes, just modifies
> /usr/openv/netbackup/db/config/sync all on its own.
> 
> 
> --
> Drew Fabbro
> fabbro.andrew AT cnf DOT com 
> Desk: 503-450-3374    Cell: 503-701-0469
> "There is no such word as 'maturity'.  There
> is only 'maturing' and 'dead'." -- Bruce Lee
> 
> 
> 
> _______________________________________________
> Veritas-bu maillist  -  Veritas-bu AT mailman.eng.auburn DOT edu
> http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu
> 


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