06-16-2009 06:00 AM
06-16-2009 06:41 PM
06-17-2009 02:46 AM
06-17-2009 11:32 PM
To achieve what you described, it'd need to be something like this.
1. snapshot is created
2. master server runs a script
3. script somehow picks up new snapshot path detail
4. the script updates the NetBackup NDMP backup policy's filelist, with the new snapshot path it found
5. the script then initiates a manual run of the backup policy
And, to be exact, I think the "step 4" above will need to be consisted with these three smaller steps
4A. find out what filepaths (old snapshot paths) are currently listed in the NDMP backup policy
4B. delete those filepaths
4C. add new filepath (the new snapshot path) in the backup policy
In short, what you'd want to do is to update the policy with new snapshot path, and simply run the policy from master server.
/usr/openv/netbackup/bin/admincmd/bppllist is the command you can run, to browse a backup policy (and find out what filepaths are currently configured within the policy) - this is for step 4A.
/usr/openv/netbackup/bin/admincmd/ bpplinclude is the command you can run to add/remove filepaths in a backup policy - for step 4B and 4C.
/usr/openv/netbackup/bin/bpbackup is the command you can run to initiate a manual run of a backup policy - for step 5.
Please be advised - bpbackup can do two things, firstly it can start a user-initiated backup with filepaths specified and seconly it can initiate a manual policy run.
As we discussed earlier, user-initiated backup is not an option with NDMP backups, so don't bother looking at first form of bpbackup command syntax usage, what you'll want is "bpbackup -i" which is the second form of bpbackup command syntax in the man page.
If you want more commands to play with backup policies, following binaries are also available from /usr/openv/netbackup/bin/admincmd directory.
bpplcatdrinfo
bpplclients
bppldelete
bpplinclude
bpplinfo
bppllist
bpplsched
bpplschedrep
bpplschedwin
bpplvalid
Happy scripting!
Abe