06-04-2011 12:05 PM
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
Solved! Go to Solution.
07-26-2011 03:28 AM
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.
06-05-2011 01:01 PM
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
06-06-2011 04:32 AM
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.
07-26-2011 03:28 AM
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.