Forum Discussion

NIKHIL234656595's avatar
13 years ago

bpstart_notify

what is the use of bpstart_notify and bpend_notify scripts which runns in the foreground before bpbkar on client.

  • as the norm you do not run them - and do not need to.

    but sometimes you may need to so something before a job or after a job  runs, these scripts let you do that.

     

    Say you want to backup all the files in one specific directory and after the backup you want to remove them.

    in this case you would have a bpend_notify script  so that after the backups are done you could put a command in the script to remove all the files from that directory.

    or

    say you want to backup some directory but you need rename a file before you start the backup to tape.  in this case you would use the bpstart_notify script so that when the backup job starts it will first run your command to rename the file, then it would do the backup to tape.

    and you can use both on the same job.

    you can be specific about what jobs run it, by creating a specially named schedule or policy

    so say your policy is "myspecialbackup"

    you would name your script  bpstart_notify.myspecialbackup  (on windows it would end with .exe)

8 Replies

  • See technote from jackie.

    You may want to do something before a backup runs, for example stop a process or move a file etc. The bpstart.notify does this then the backup will run when. After the backup finished the bpend.notify script is ran (for example you may want to start a process or move a file back).

     

     

  • what this script does after it receives the 6 parameter.

     

    \netbackup\bin\goodies\bpstart_notify.bat

    - This script is called when bpbkar is started for a client backup.
    - This script receives six parameters:

    %1 = CLIENT_NAME
    %2 = POLICY_NAME
    %3 = SCHEDULE_NAME
    %4 = SCHEDULE_TYPE, one of the following: FULL, INCR, CINC, UBAK, UARC
    %5 = STATUS, always 0
    %6 = RESULT_FILE

  • Have you seen the following statement in TECH162973 ? (link in Jackie007's post):

    Please refer to the NetBackup Administration Guide Volume I and Volume II for complete details.

     

    Please see p. 153 - 162 of  NBU Admin Guide for UNIX and Linux, Volume II  http://www.symantec.com/docs/DOC3651

     

     

  • Then the bp.notify/end scruots won't run. Your backups to those clients will run as normal and will not utilize the bp.notify/end scripts.

     

  • as the norm you do not run them - and do not need to.

    but sometimes you may need to so something before a job or after a job  runs, these scripts let you do that.

     

    Say you want to backup all the files in one specific directory and after the backup you want to remove them.

    in this case you would have a bpend_notify script  so that after the backups are done you could put a command in the script to remove all the files from that directory.

    or

    say you want to backup some directory but you need rename a file before you start the backup to tape.  in this case you would use the bpstart_notify script so that when the backup job starts it will first run your command to rename the file, then it would do the backup to tape.

    and you can use both on the same job.

    you can be specific about what jobs run it, by creating a specially named schedule or policy

    so say your policy is "myspecialbackup"

    you would name your script  bpstart_notify.myspecialbackup  (on windows it would end with .exe)