cancel
Showing results for 
Search instead for 
Did you mean: 

NBU$START and NBU$END scripts in OpenVMS

Khalid_Mashaykh
Level 4
Partner Accredited

Hello Guys,

 

I´m triying to excute a script in OpenVMS client before start the backup proccess , I created the NBUSTART.CMD file in [OPENV.NETBACKUP] folder and store a simple commands on it (like create file with name TEST) so what is the next step, how I can make sure that this script will excute before the backup job start , Please advise?

 

Best regards,

Khaled Mashaykh

1 ACCEPTED SOLUTION

Accepted Solutions

Khalid_Mashaykh
Level 4
Partner Accredited

Hi Riaan,

Thanks for reply , actually Pre and Post scripts in OpenVMs are totally different from the UNIX.

 

The start and end notify command files provide user defined pre and post NetBackup processing. They are called only on a backup, not on a restore. The system logical name NBU$START points to the start command file, and NBU$END points to the end command file. Each command file is passed the backup command line from the server in parameter 'P1'. This parameter contains the class and schedule name from the server and other information about the backup. If the start command file returns an OpenVMS error status (lower bit clear) then the backup will not proceed. A returned status of zero is considered a success.

 

How to do backup

 

Page number 17 -23

 

http://www.symantec.com/business/support/index?page=content&id=DOC4238&key=15143&actp=LIST

 

 

 

Please refer the below guide

 

http://www.symantec.com/business/support/index?page=content&id=DOC4238&key=15143&actp=LIST

 

Page number 68 -71 (scripts)

 

Thanks for symantec technical support.

View solution in original post

3 REPLIES 3

Khalid_Mashaykh
Level 4
Partner Accredited

sample of scripts: 

 

Sample1 :

$dir /out=aa.lis

 

Sample 2:

rmu/backup/log /online mp7datadisk1:[mp7r_do.mp7rdb]mp7database.rdb -
$dsk5:[000000]mp7_ful.rbf

 

RiaanBadenhorst
Moderator
Moderator
Partner    VIP    Accredited Certified

Hi,

 

Not sure if it would be different for openVMS but in all other unix the scripts have to be called bpstart_notify and bpend_notify and the location to place them on the client is /usr/openv/netbackup/bin.

 

You can also append the policy name if you only want it to run in some instances i.e. bpstart_notify.FULL_BACKUP where it will only run once a backup policy with the name FULL_BACKUP runs.

 

Further to that you can also append a schedule i.e. bpstart_notify.FULL_BACKUP.Daily which will only run for the policy FULL_BACKUP with the schedule named Daily.

Khalid_Mashaykh
Level 4
Partner Accredited

Hi Riaan,

Thanks for reply , actually Pre and Post scripts in OpenVMs are totally different from the UNIX.

 

The start and end notify command files provide user defined pre and post NetBackup processing. They are called only on a backup, not on a restore. The system logical name NBU$START points to the start command file, and NBU$END points to the end command file. Each command file is passed the backup command line from the server in parameter 'P1'. This parameter contains the class and schedule name from the server and other information about the backup. If the start command file returns an OpenVMS error status (lower bit clear) then the backup will not proceed. A returned status of zero is considered a success.

 

How to do backup

 

Page number 17 -23

 

http://www.symantec.com/business/support/index?page=content&id=DOC4238&key=15143&actp=LIST

 

 

 

Please refer the below guide

 

http://www.symantec.com/business/support/index?page=content&id=DOC4238&key=15143&actp=LIST

 

Page number 68 -71 (scripts)

 

Thanks for symantec technical support.