Forum Discussion

habibalby's avatar
habibalby
Level 5
13 years ago

Backup Scripts forEnterprise Vault & Event IDs with Veeam Post Script

Hello,

I have generated the scripts that needed to backup my Enterprise Vault Sites and Storage Groups using the Transform-Backup.PS1.

I have made two scripts, EVPostScript.PS1 which contains the Set-Clear commands to clear all the backup modes.

And I have create a EVPreScript.ps1 which runs via Task Schduler, the EVPreScript contains the Set Backup Mode on the site and on the Storage Groups.

When the EVPreScript runs, it set the Vault and Groups into the Backup Mode and Generates an Event IDs 7060,7059,7058,7319. After that the EVPreScript will invoke the Veeam Backup Job.

When the Backup Success on Veeam the EVPostScript should invoke the Clear- command to clear the Vault and Storage Groups from backup Mode. EVServer doesn't generate Event IDs when it exists even when I put the command maulally to exits the backup mode. It says that successfuly cleared, but no event IDs.

On the other Hand I can see that a Warning in the Event Viewer 41257 "One or more Vault Stores are in Backup Mode"

Any one can help?

Thanks,

 

  • Your PRE script should simply set backup mode at the site level, and indexes at the site level.. eg just:

     

    #Site:EV Site
    #Set backup mode on site
    c:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe  -psconsolefile "C:\Program Files (x86)\Enterprise Vault\EVShell.psc1" -command "& {Set-VaultStoreBackupMode -Name 'EV Site' -EVServerName evserver -EVObjectType Site}"

     

    #Set backup mode on indexes in site

    c:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe -psconsolefile "C:\Program Files (x86)\Enterprise Vault\EVShell.psc1" -command "& {Set-IndexLocationBackupMode -EVServerName evserver -EVSiteName 'EV Site'}"

    Same for your POST script.

     

    You do not need to set at the site, then the vault store group, then the vault store, then the index locations.