knoxvegas
17 years agoLevel 4
Setting the backup mode with the pre and post script usning BrightStor Arcserve
I need help setting the backup with a pre and post script when running backups with BrightStor Arcserve. Below are my batch files:
Pre Script
Powershell.exe -psconsolefile "E:\Program Files\Enterprise Vault\evshell.psc1" set-IndexLocationBackupMode evserv
Powershell.exe -psconsolefile "E:\Program Files\Enterprise Vault\evshell.psc1" set-vaultstorebackupmode -name 'Vault Store Group' -evservername evserv -evobjecttype 'vaultstoregroup'
Post Script
Powershell.exe -psconsolefile "E:\Program Files\Enterprise Vault\evshell.psc1" clear-IndexLocationBackupMode evserv
Powershell.exe -psconsolefile "E:\Program Files\Enterprise Vault\evshell.psc1" clear-vaultstorebackupmode -name ' Vault Store Group' -evservername evserv -evobjecttype 'vaultstoregroup'
The problem I'm having is that it's not executing the script. It keeps failing. I need some guidance on how I can get the script to execute on my evault servers when running backup jobs from my backup server. Thanks.
Thanks,
Sunshine
Pre Script
Powershell.exe -psconsolefile "E:\Program Files\Enterprise Vault\evshell.psc1" set-IndexLocationBackupMode evserv
Powershell.exe -psconsolefile "E:\Program Files\Enterprise Vault\evshell.psc1" set-vaultstorebackupmode -name 'Vault Store Group' -evservername evserv -evobjecttype 'vaultstoregroup'
Post Script
Powershell.exe -psconsolefile "E:\Program Files\Enterprise Vault\evshell.psc1" clear-IndexLocationBackupMode evserv
Powershell.exe -psconsolefile "E:\Program Files\Enterprise Vault\evshell.psc1" clear-vaultstorebackupmode -name ' Vault Store Group' -evservername evserv -evobjecttype 'vaultstoregroup'
The problem I'm having is that it's not executing the script. It keeps failing. I need some guidance on how I can get the script to execute on my evault servers when running backup jobs from my backup server. Thanks.
Thanks,
Sunshine
- I created a batch file that executed PSexec as below (the reason I had to do this is because Arcserve runst pre/post scripts locally and not remotely):
C:\EnterpriseVault\psexec.exe \\evserv01 cmd /c "echo . | C:\EnterpriseVault\pre.bat"
Psexec then executes a batch file that I have stored on my vault servers at this location C:\EnterpriseVault\pre.bat. The batch files look like this:
pre.bat
Powershell.exe -psconsolefile "E:\Program Files\Enterprise Vault\evshell.psc1" set-IndexLocationBackupMode evserv
Powershell.exe -psconsolefile "E:\Program Files\Enterprise Vault\evshell.psc1" set-vaultstorebackupmode -name 'Vault Store Group' -evservername evserv -evobjecttype 'vaultstoregroup'
exit
post.bat
Powershell.exe -psconsolefile "E:\Program Files\Enterprise Vault\evshell.psc1" clear-IndexLocationBackupMode evserv
Powershell.exe -psconsolefile "E:\Program Files\Enterprise Vault\evshell.psc1" clear-vaultstorebackupmode -name ' Vault Store Group' -evservername evserv -evobjecttype 'vaultstoregroup'
Everthing seems to work great at the moment. Thanks for everyone's help.
Sunshine