cancel
Showing results for 
Search instead for 
Did you mean: 

Catalog Backup - command line version?

Colin_North
Level 6
Hi guys,
In NBU 5.0 if I want to change the schedule for my Catalog Backups from the NBU Admin Console I would...
 
* expand Netbackup Management
* select Catalog
* select Actions > Configure Netbackup Catalog Backup
* then select what option I require e.g. After each session of scheduled backups
 
Is there a command line version of this that I can include in a script?
 
Colin.
 
8 REPLIES 8

DavidParker
Level 6
Colin,
This is for 5.1, but I bet the commands are mostly identical with 5.0 (also, you could search for a 5.0 version of the file).  You might be able to find something useful in here:

http://support.veritas.com/docs/268116
VERITAS NetBackup (tm) 5.1 Command Reference for UNIX

Stumpr2
Level 6
#/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.
USAGE: bpsyncinfo [-l|-L|-U] [-v] [-M master_server,...]
      bpsyncinfo -delete <id> [-v] [-M master_server,...]
      bpsyncinfo -doBackup [-v] [-M master_server,...]
      bpsyncinfo: [-paths <"path1 path2 ..."> | -add_paths <"path1 path2 ...">]
          [-v] [-M master_server,...]
          [-server <hostname connected to device>]
          [-bw <backup when>]
          [-id1 <id> [-d1 <densitystr>]]
          [-id2 <id> [-d2 <densitystr>]]
      densitystr is required if media type is tape
      the list of paths must be enclosed in double quotes and blank-delimited
      backup when choices:  never, session or dbupdate
      id is either a media ID or path

DavidParker
Level 6
*bows to Bob's mighty Search-Fu*

Colin_North
Level 6
Bob / David,
Thanks for your replies, I have found the bpsyncinfo.exe command buried under the windows directory structure. At the moment I can't find any Veritas documentation relating to this command....I'll keep looking.
 
Cheers, Colin.

DavidParker
Level 6
Ah, another undocumented command =)

Stumpr2
Level 6
How to configure and backup NetBackup catalogs from command line.
 
 

Stumpr2
Level 6


David Parker wrote:
Ah, another undocumented command =)



That's why we are here Man Wink

Colin_North
Level 6
Bob,
That's exactly what I was looking for - bpsyncinfo -bw never & -bw session.
 
Thanks for your help.
 
Colin.