cancel
Showing results for 
Search instead for 
Did you mean: 

Client Initiated Backup

Vince_Corona
Level 4
Is there anyway in NetBackup 6 to call a backup from the command line, however, to tie into an existing Policy (to utilize the selection list).

We have a SAN based utility that will take an Exchange backup, mount the offline Exchange files, and then call a post execution script if desired (here is where I would put the NBU command).

When reading the fine print of bpbackup.exe, it can call a policy, but I need to specify which files or directories to backup. All I want to do is run the policy which already has my selection list defined (ALL_LOCAL_DRIVES).

Any help or suggestoins is appreciated!
7 REPLIES 7

Stumpr2
Level 6
why not run it without using the -f or -i options?

just give it the policy,schedule and type

USAGE: bpbackup
]
]
-f listfile | filenames
bpbackup -i
]
]
bpbackup -dssu DSSUnameMessage was edited by:
Bob Stump

Vince_Corona
Level 4
Well, it look like -i needs to be there, so when I type:

bpbackup -i -p pol_server

It takes the command and returns to a command prompt, however, on my Master server, there are no running jobs or activity.

Stumpr2
Level 6
yes, of course you need to use the -i option..what was I thinking? oh yeah I thought -i meant to inquire. my mistake. I should have read the man page.


This did work for me as root on my master server, mastermind:

# bpbackup -p UNIX_rules -s Once_a_day -t 0 -i -h mastermind

Stumpr2
Level 6
so, I think you may want to change yours to be

bpbackup -i -p pol_server -s -t 16 -h

Hey, if this works will you reward me with points?
My favorite color is green.

Vince_Corona
Level 4
Actually "I" figured it out! Your hints were helpful, but not right on. Remember, this needed to be done from the client not the Master or media servers. Anyways, the issue was that the Client needed to be specified in the "Master Server Properties" > Servers > Additional servers.

Hmm, can I give points to myself?

Stumpr2
Level 6
LOL - thanks for the points
I hope I can help you in the future!

J_S__Darman_Tua
Level 3
Certified
Dear Vince,

In our environtment, we use this command in our backup script (running by cron)

bpbackup -p $POLICYNAME -s $SCHEDULENAME -L xxx.log -f list_file_backup.txt

Note :
- xxx.log = backup log
- list_file_backup.txt = list file/directory to backup

In the master server, you must create policy for that client with policy type "user backup or user archive for automatic delete"

regards,