3 servers - SQL (EVDB01), Enterprise Vault (vault) and Discovery Acelerator (EVDA01)
Created two backup jobs - DB_BACKUP and APP_BACKUP
Created to batch scripts - one to delete trigger files and set backup mode, the other to create trigger file and clear backup mode.
Backup job settings:
DB_BACKUP - Advanced Settings - Scripts - Run the following script before the job - D:\SCRIPTS\SET-EV-BackupMode.bat
SET-EV-BackupMode.bat:
DEL "\\EV1\E$\Enterprise Vault Stores\EV Store 0 Partition 0\ignorearchivebittrigger.txt"
DEL "\\EV1\F$\Enterprise Vault Stores\Partition1\ignorearchivebittrigger.txt"
C:\Windows\SysWOW64\WindowsPowerShell\v1.0\PowerShell -PSConsole "C:\Program Files (x86)\Enterprise Vault\evshell.psc1" -command "& {set-IndexLocationBackupMode -EVServerName vault -EVSiteName EVVault}"
C:\Windows\SysWOW64\WindowsPowerShell\v1.0\PowerShell -PSConsole "C:\Program Files (x86)\Enterprise Vault\evshell.psc1" -command "& {set-VaultStoreBackupMode -Name EVVault -EVServerName vault -EVObjectType Site}"
Backup job settings:
APP_BACKUP - Advanced Settings - Scripts - Run the following script after the job - D:\SCRIPTS\CLEAR-EV-BackupMode.bat
CLEAR-EV-BackupMode.bat
ECHO Trigger > "\\EV1\E$\Enterprise Vault Stores\EV Store 0 Partition 0\ignorearchivebittrigger.txt"
ECHO Trigger > "\\EV1\F$\Enterprise Vault Stores\Partition1\ignorearchivebittrigger.txt"
C:\Windows\SysWOW64\WindowsPowerShell\v1.0\PowerShell -PSConsole "C:\Program Files (x86)\Enterprise Vault\evshell.psc1" -command "& {clear-IndexLocationBackupMode -EVServerName vault -EVSiteName EVVault}"
C:\Windows\SysWOW64\WindowsPowerShell\v1.0\PowerShell -PSConsole "C:\Program Files (x86)\Enterprise Vault\evshell.psc1" -command "& {clear-VaultStoreBackupMode -Name EVVault -EVServerName vault -EVObjectType Site}"
The scripts run fine if run manually or through Task Scheduler, but not via the job settings. Any suggestions?
-
- Enthusiast
- Posts: 33
- Liked: 1 time
- Joined: Nov 04, 2011 1:45 pm
- Full Name: Dan Andryszak
- Contact:
-
- Veeam Software
- Posts: 2097
- Liked: 310 times
- Joined: Nov 17, 2015 2:38 am
- Full Name: Joe Marton
- Location: Chicago, IL
- Contact:
Re: Issues with PRE or POST scripts
I see the script is set to delete files from shares on EV1. What account is used to start the Veeam services? That's the account which will run the script if it's running on the backup server via the scripts portion of the advanced storage settings in the job. If the account doesn't have rights then that explains what you're seeing. Honestly what may be better is to run the scripts as part of Application-aware Image Processing in guest itself for EV1 so that you're just deleting local files.
Joe
Joe
-
- Lurker
- Posts: 2
- Liked: never
- Joined: Aug 24, 2018 8:06 pm
- Full Name: Brandenburg
- Contact:
Re: Issues with PRE or POST scripts
We are experiencing a similar (although it is 7 years later than the below post).
We run a pre script to that should remove the trigger file and then set the backup mode and we run a post script that removes the trigger file and clears the backup mode. The setting and clearing backup mode work just fine, but the trigger file is not getting deleted. There are no errors in the log files on the source or destination server, and we have tried changing the DEL command to a remote power shell command and still do not have any success.
Ideas on this?
We run a pre script to that should remove the trigger file and then set the backup mode and we run a post script that removes the trigger file and clears the backup mode. The setting and clearing backup mode work just fine, but the trigger file is not getting deleted. There are no errors in the log files on the source or destination server, and we have tried changing the DEL command to a remote power shell command and still do not have any success.
Ideas on this?
-
- Veeam Software
- Posts: 21139
- Liked: 2141 times
- Joined: Jul 11, 2011 10:22 am
- Full Name: Alexander Fogelson
- Contact:
Re: Issues with PRE or POST scripts
Please review this thread, might help.
Who is online
Users browsing this forum: No registered users and 79 guests