Video Screencast Help
Archiving and eDiscovery Community Blog

Enterprise Vault 11 Backup

With a script...
Created: 27 May 2014 • Updated: 29 May 2014
The Boulon's picture
0 0 Votes
Login to vote

Because Backup Exec 2012 is not compatible (yet) with Enterprise Vault 11 and because of this, you cannot take advantage of the agent for Enterprise Vault, you will need to do everything via script.

First, I told myself: OK, no big deal. Just do as usual: the ps script, the authorization manager and the backup job (with the archive bit).

Hmm... no, it wasn't working the way I wanted. Especially because I use a new feature in EV 11: The Storage queue. And that one needs to empty itself after a backup job.

So, I decided to try it the old way, with the trigger file. Bingo, after a while I could see my EV Storage Queue disk freed from all those safety copies.

For this, I changed the Ptn backup from archive bit to trigger file, restarted the Storage Service and started a backup.

But wait, what about SQL? The databases need to be backed up in the same time frame as the vault stores and indexes.

No problem! Depending where your SQL reside, you will use dtexec for a local installation or sqlcmd for a remote installation.

This is how my pre-script looks like.

%SystemRoot%\SysWow64\WindowsPowerShell\v1.0\powershell -psconsolefile "C:\Program Files (x86)\Enterprise Vault\EVShell.psc1" -command "& {Set-VaultStoreBackupMode -Name evlab -EVServerName ev -EVObjectType Site}"

%SystemRoot%\SysWow64\WindowsPowerShell\v1.0\powershell -psconsolefile "C:\Program Files (x86)\Enterprise Vault\EVShell.psc1" -command "& {Set-IndexLocationBackupMode -EVServerName ev -EVSiteName evlab}"

del "I:\Enterprise Vault Stores\VS01 Ptn1\ignorearchivebittrigger.old"
del "I:\Enterprise Vault Stores\VS01 Ptn2\ignorearchivebittrigger.old"

dtexec /SQL "Maintenance Plans\EVSQLBackup" /SERVER "." /CHECKPOINTING OFF /SET "\Package\Subplan_1.Disable";false

If you need to start a job on a remote SQL, use SQLCMD like this:
SQLCMD -E -S REMOTESERVER -Q "exec msdb.dbo.sp_start_job  @job_name='RemoteJob'"

For the post script, nothing much to say.

%SystemRoot%\SysWow64\WindowsPowerShell\v1.0\powershell -psconsolefile "C:\Program Files (x86)\Enterprise Vault\EVShell.psc1" -command "& {Clear-VaultStoreBackupMode -Name VSG01 -EVServerName ev -EVObjectType VaultStoreGroup}"

%SystemRoot%\SysWow64\WindowsPowerShell\v1.0\powershell -psconsolefile "C:\Program Files (x86)\Enterprise Vault\EVShell.psc1" -command "& {Clear-IndexLocationBackupMode -EVServerName ev -EVSiteName evlab}"

ECHO > "I:\Enterprise Vault Stores\VS01 Ptn1\ignorearchivebittrigger.txt"
ECHO > "I:\Enterprise Vault Stores\VS01 Ptn2\ignorearchivebittrigger.txt"

Hope it helps!