cancel
Showing results for 
Search instead for 
Did you mean: 

Netbackup 6.5.3 VCB 1.5 - pre/post scripts

houghtp
Level 2

Hi,

Is there a way to run pre and post scripts with these versions? I can't seem to find a way to do it?

I need to runa script to put the SCOm 2007 agent in maintenace mode for the duration of the backup.  I know how to do this via scripts but need a way to trigger the scripts pre / post backups.

I knwo previously you could use config.js but i don;t belive netbackup utilises these files with the later versions of VCb integration.

thanks

Paul.

2 REPLIES 2

Anonymous
Not applicable
The pre/post scripts seem to be depracated, in later NetBackup/VCB integrations as you rightly say.

However, interesting article over at the VMware Infrastructure Operations website. (URL below)
It uses the vmware tools in the guest for the pre and post.

It details some interesting information about VCB, and that Custom VM Quiesce scripts should reside inside the VMware Tools subfolder.

Page 6 of the article
All custom scripts placed in the backupScripts.d directory will be analyzed during both the pre-freeze AND post-
thaw events. This means that logic needs to be placed in the script so that the desired result is gained. If no “IF’
statements are contained in the scripts, they will be executed during both the pre-freeze and post-thaw events,
which could be undesirable.
 
 
 
A script should contain statements similar to the following: 
IF “%1%” == “freeze” goto doFreeze 
goto postThaw 
 
:postThaw 
IF “%1%” == “thaw goto doThaw 
goto fail
 
:doFreeze 
net stop mysql 
goto EOF
 
:doThaw 
net start mysql 
goto EOF
 
:fail
echo “$ERRORLEVEL% >> vcbError.txt
 
:EOF


References:
http://viops.vmware.com/home/docs/DOC-1392
http://viops.vmware.com/home/message/1125
http://communities.vmware.com/message/1017118

Good Luck let us know how you get on.

sokam
Level 3
I have a script which runs as a Windows task scheduler 30 mins before the start of a Full backup job to create a snapshot of a CIFs share on our IBM N series filer.

See below my script (it uses PLINK.exe):

plink -ssh -l username -pw password baystorm snap delete BAYSTORMServer SatFull
plink -ssh -l username -pw password baystorm snap create BAYSTORMServer SatFull


The snapshot is then backed up as a Full backup job via a NetBackup v6.5.3 client.
I then delete the snapshot after a successful completion of the backup.

I need some help to incorporate my script within the NetBackup Pre/Post script to automate the process of creating the snapshot, the backup the snapshot and then delete it after it has successfully completed.