Does anyone have the syntax for creating Policys from the command line? Bppolicynew and bpplsched seem to work fine for creating and changeing the attributes, except I can't change the files I want to backup.
There are two commands that may help you. I have never used them from command line but test it out and see if it works. /opt/openv/netbackup/bin/admincmd/bpplinclude and bpplexclude
Take a look at the syntax for these commands and I believe that they will let you change by adding or excluding certain files from existing policies.
The other option would be to create the include and exclude list manually in the /opt/openv/netbackup directory specifying the policyname and the schedule name on the client that the policy backs up on. I obviously prefer the second option but am interested if you decide to test the first one.
There is a man page on bpplinclude and here is a snippet:
bpplinclude maintains the policy file list for a NetBackup policy. This is the list of files backed up when NetBackup runs an automatic backup for the policy. The policy file list does not apply to user backups or archives since users select the files when they start those operations.
bpplinclude performs one of the following operations:
+ Adds pathnames to the policy file list
+ Deletes pathnames from the policy file list
+ Modifies pathnames in the policy file list
+ Displays the policy file list for a policy
The -add, -delete, and -modify options include a list of pathnames. The list of pathnames must be the final part of the bpplinclude command line. The pathname must be the entire path from the root of the file system to the desired location. For the absolute pathname syntax for your client type, refer to the File-Path Rules topics in the NetBackup System Administrator's Guide. The last part of the path can be a filename, a directory name, or a wildcard specification. You can en close pathnames in quotes. Use enclosing quotes if the pathname contains special characters or a wildcard specification.
Bob Stump
Just because the VERITAS documentation states a certain thing does not make it a fact and thats the truth
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.