Forum Discussion

NBU2010's avatar
NBU2010
Level 6
12 years ago
Solved

Starting 1 Policy After Another

Dear Forum,

Setup : MASTER/MEDIA Sol. 10 / NBU 7.5.0.6

Client : Solaris 10. / NBU 7.5.0.6

Requirement : Need to start 2nd Policy after completion of 1st policy.

I m using bpstart_notify and  bpend_notify for 1st policy. Thinking of putting bpbackup in bpend_notify of 1st policy.

But when i m testing the bpbackup command on client it is giving me error 237.

Command : /usr/openv/netbackup/bin/bpbackup -p 2nd_Policy -s User Backup -S MASTER SERVER /oracle/123/oraarch.

Need to know what exactly needs to be configured in this 2nd_policy, so that once the bpend of 1st policy calls it then 2nd_policy should be triggered.

Currently the policy is having in Attributes...policy type : standard, policy storage is defined, policy volume is defined.

Schedules is having User Backup as type,retention period defined and Media Multiplexing defined. Do i have to put nything in Start Window mentioning the start time.

Client name is mentioned and Backup Selection is also defined what needs to be backed up.

Actually what i need to achive from this method is to backup first /oracle db (which i m putting in hot backup mode from bpstart and end backup from bpend_notify...later when the control files are generated i will trigger 2nd policy and get it) and once that is completed i want archieve logs to be backed up from the 2nd_policy.

Pls. suggest / advice the right command set / different ways for this requirement.
 

 Thanks in Advance

  • -f options needs to be followed by the name of the file that contains the list of items that need to be backed up. 

    If you need to backup /oracle/123/oraarch, you need to drop -f.

    You have not responded to the 1st part of my post?

  • From client i m able to start the backup, but what all options i have to use for starting the same backup from a master server.....

     bpbackup -i -p <policy_name>  -s WEEKLY

    This is giving error 239 / 241.

    Since there r no filesystem details in the policy nor any Automatic schedule it is giving this error.

    1 specific scenario if this policy fails by any reason, we can either start from client or master server.

     

  • You cannot start a User Backup from the master - only from a client.

    To start backup from the Master, you need to add another schedule of type Full to the policy.

    So, if you add a schedule to policy XYZ of type Full with schedule name FULL, you can run command from the master (/oracle/123/oraarch/ must be in the Backup selection):

    bpbackup -i -p XYZ  -s FULL

    From client:

    bpbackup -p XYZ -s WEEKLY  /oracle/123/oraarch

     

    PS: 
    bpend_notify... runs on a client only - the requirement in your opening post was to start bpbackup from bpend_notify... on the client.