We are looking at scripting the creation of job policies, since there is no API :(
We are running NBU 7.6.1 on RHEL 6.
It looks like simply coping the directory under <install_path>/db/class/ for a default policy and manually editing the clients, schedule, and include files is a pretty straight forward way to accomplish this. The only thing that concerns me is the VMD5_DIGEST line that is commented out. I did some googling and found an older article that described this line's importaince:
Another issue to be aware of is that many of NetBackup's configuration files now contain an MD5 signature. If you have scripts that edit configuration files directly, make sure these files don't contain an MD5 signature. (Look for a line that says #VMD5_DIGEST.) If they do, and you edit them without using a NetBackup command or the GUI - you'll render these files useless. For example, if you use vi or notepad to change any of the values in the file /usr/openv/netbackup/db/class/ /info, the policy in question will disappear from the NetBackup GUI and will no longer run. However, if you edited this file using a NetBackup command, it would be fine.
Src: http://searchstorage.techtarget.com/magazineConten...
Now the fact that it is commented out intrigued me so I decided to test this and It looks like coping the structure does in fact create a new policy and that policy is visable in the GUI.
Is there anything to be concerned with dealing with that line? I Just want to make sure it isn't being used for anything else behind the scnenes.
Thanks,