Forum Discussion

Kisad's avatar
Kisad
Level 5
15 years ago

command to add multiple path in the policy selection list

Hi All,

I need to add around 52 file lists in the selection list of a unix backup policy.Doing so from the gui is quite time consuming. i was wondering what would be the command line equivalent of the gui method. i checked out the options of bppolicynew and bpplinclude but am not quite sure of it.Please suggest.


Thanks for your Time & Help
Kisad


  • You did not mention your NBU version?

    NBU 6.5 Commands manual
    contains a number of examples, e.g:

    bpplinclude mkbpolicy -add /yap /y*

    bpplinclude mkbpolicy -L
    Include: yap
    Include: /y*

5 Replies

Replies have been turned off for this discussion
  • You should never edit the class folder unless you are absoultely aware of the file structure. Even if you create a single unstructured file inside the class folder, netbackup wont come up after the suceeding reboot.

    Netbackup operates on the folder structure and details of it are pulled out from those folders.

    We need to use the BPPL command to modify every section of the policy and should not touch the class folder for editing smiley
  • Use this bpplinclude command

    # bpplinclude -help
    USAGE: bpplinclude policy_name [-v] [-M master_server,...] -L|-l
          bpplinclude policy_name [-v] [-M master_server,...] -add path_name ...
          bpplinclude policy_name [-v] [-M master_server,...] -add -f filename
          bpplinclude policy_name [-v] [-M master_server,...] -delete path_name ..
          bpplinclude policy_name [-v] [-M master_server,...] -delete -f filename
          bpplinclude policy_name [-v] [-M master_server,...]
             -modify {old_path_name new_path_name} ...

     


  • Hello,

    try to look for something in

    Master server
    /opt/openv/netbackup/db/class/<POLICENAME>/include

    I thing that will help you.




  • You did not mention your NBU version?

    NBU 6.5 Commands manual
    contains a number of examples, e.g:

    bpplinclude mkbpolicy -add /yap /y*

    bpplinclude mkbpolicy -L
    Include: yap
    Include: /y*
  • Hi Guys,

    Thanks for the response. I will try the options and revert.