OS: Windows 2003 R2 SP2
Enterprise Vault 8.0 SP4
Netbackup 6.0 MP5
Trying to configure the bpstart_notify.bat and the bpsend_notify.bat to run and the start and the end of the job to place the Enterprise Vault indexes into backup mode.
The command below work great and do place the indexes in backup mode. I am not worried about the Vault Stores because we use Centera’s and replication between Data Centers. Also the we do flat file backups for the SQL. So the indexes is the are the only thing left.
Pre Command
powershell.exe -PSConsole "C:\Program Files\Enterprise Vault\evshell.psc1" set-indexlocationbackupmode ServerName 'Site Archive'
Post Command
powershell.exe -PSConsole "C:\Program Files\Enterprise Vault\evshell.psc1" clear-indexlocationbackupmode ServerName 'Site Archive'
The issue I am having is when I place the either the power shell command or another bat file that calls the power shell command in the bpstart_notify.bat Netbackup when the job is run does not place the indexes in backup mode. The job runs and when it starts writing data to tape I check the indexes to see if they are in backup mode and they are not and yes I refresh.
Any help would be appreciated.
Thanks
Leon
Not scripting expert.
Example of script.
REM $Id: bpstart_notify.bat,v 1.2 2004/12/22 11:22:41 $
@REM ***************************************************************************
@REM * $VRTScprght: Copyright 1993 - 2007 Symantec Corporation, All Rights Reserved $ *
@REM ***************************************************************************
@REM ecpyrght
@REM
@REM bpstart_notify.bat
@REM
@REM This script is called by NetBackup when bpbkar is started up on the client
@REM to do a backup or archive.
@REM
@REM This script receives 6 parameters:
@REM %1 = CLIENT_NAME
@REM %2 = POLICY_NAME
@REM %3 = SCHEDULE_NAME
@REM %4 = SCHEDULE_TYPE, one of the following: FULL, INCR, CINC, UBAK, UARC
@REM %5 = STATUS, always 0
@REM %6 = RESULT_FILE
@REM
@REM The script must reside in in the same directory as the rest of the NetBackup
@REM client binaries (install_path\netbackup\bin\bpstart_notify.bat).
@REM It must also be executable by the root user.
@REM Should exit with 0 upon successful completion
@REM
@REM Naming conventions:
@REM There are three different versions of names that the scripts can use.
@REM The start notify script may use one version and the end notify script may use
@REM another, or they can both use the same version.
@REM
@REM Substitute "policy" with the NetBackup policy being used and "sched" with the
@REM schedule name. "bpstart" can be substituted with "bpend".
@REM bpstart_notify.policy.sched.bat
@REM bpstart_notify.policy.bat
@REM bpstart_notify.bat
@REM
@REM Result files:
@REM The result file names will be dependant on the script file names.
@REM Example:
@REM Script name: Result file name:
@REM bpstart_notify.policyA.schedB.bat BPSTART_RES.policyA.schedB
@REM bpstart_notify.policyB.bat BPSTART_RES.policyB
@REM bpend_notify.bat BPEND_RES
@REM
@REM CAUTION: Writing anything to stdout or stderr will cause backup problems.
@REM Output should be redirected to the results files.
@REM
@REM --------------------------------------------------------------------
@REM main script starts here
@REM This is a simple script that records what kind of backup will be done along
@REM with other relevent information (Client name, policy name, etc) and
@REM appends the information to the results file
@REM --------------------------------------------------------------------
powershell.exe -PSConsole "C:\Program Files\Enterprise Vault\evshell.psc1" set-indexlocationbackupmode ServerName 'Site Archive'