enterprise vault elastic search index snapshot automatic backup script
Hello,
we set up a new enterprise vault 14.2 and we create a new indexsnapshot disk but we can not create a script that automatic indexsnapshot.
we take indexsnapshot backup manually , how can we automate that.
Thank you
Hi MikeK-GT,
I used a .bat file with the following in it and it worked without issue. You will need to replace the path if needed along with the correct SiteId for your environment. You should then be able to run this as the Vault Service Account in Windows Scheduler.
C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe -psconsolefile "C:\Program Files (x86)\Enterprise Vault\EVShell.psc1" -command "& {New-EVIndexSnapshot -SiteId "REPLACEME8A185D71384F250D1d10000evserver1" -Confirm:$False}"
Regards,
Patrick
Hello All
we solved that problem, we can take snapshot automatically by script.
we are using that command when we set Backup mode
cd "C:\Windows\SysWOW64\WindowsPowerShell\v1.0"
.\powershell.exe -psconsolefile "C:\Program Files (x86)\Enterprise Vault\EVShell.psc1" -command "& {Set-VaultStoreBackupMode -Name FFFFF -EVServerName YYYYY -EVObjectType Site}"
.\powershell.exe -psconsolefile "C:\Program Files (x86)\Enterprise Vault\EVShell.psc1" -command "& {Set-VaultStoreBackupMode -Name VSG -EVServerName YYYYY -EVObjectType VaultStoreGroup}"
.\powershell.exe -psconsolefile "C:\Program Files (x86)\Enterprise Vault\EVShell.psc1" -command "& {Set-VaultStoreBackupMode -Name Journal15Store -EVServerName YYYYY -EVObjectType VaultStore}"
.\powershell.exe -psconsolefile "C:\Program Files (x86)\Enterprise Vault\EVShell.psc1" -command "& {Set-VaultStoreBackupMode -Name Mail15Store -EVServerName YYYYY -EVObjectType VaultStore}"
.\powershell.exe -psconsolefile "C:\Program Files (x86)\Enterprise Vault\evshell.psc1" -command "& {New-EvIndexsnapshot -EVServerName YYYYY.FFFF.com.tr -confirm:$false}"
del "T:\Enterprise Vault Stores\Journal15Store Ptn6\IgnoreArchiveBitTrigger.old"
del "N:\Enterprise Vault Stores\MailStore 15Ptn111\IgnoreArchiveBitTrigger.old"