EV 8.0 Using EV Management Shell to set Backup Mode
Has anyone successfully been able to execute a script file that would set the Vault Store Group or Index Locations into BackupMode using the Cmdlets available in EV Management Shell?
I have tried the CMDlets
Set-IndexLocationBackupMode .....
Set-VaultStoreBackupMode .....
and as long as I run them within the EV Management Shell they work great. As soon as you try putting them in a Script file they will not run.
I have tried calling the C:\Program Files\Enterprise Vault\Bootstapper.exe set-IndexLocationBackupMode etc. in the script file, but nothing I have tried works.
I would like Backup Exec to use the prebackup and postbackup script files to set the BackupMode and clear the setting after a successful backup.
Judy
There is a section in the ReadMe file that has examples of the commands.
Note: Microsoft PowerShell 1.0 must be installed on your server to run these cmdlets.
The following pre-backup extract from a backup script:
- Runs PowerShell
- Loads the Enterprise Vault PowerShell snapin
- Runs the set-vaultstorebackupmode cmdlet to set backup mode on all the vault stores in the vault store group called Express Vault Store Group, which is owned by the server calledserver1
powershell -psconsolefile "C:\Program Files\Enterprise Vault\EVShell.psc1" -command "& {set-vaultstorebackupmode -name 'Express Vault Store Group' -evservername server1 -evobjecttype vaultstoregroup}"
The following post-backup extract from a backup script:
- Runs PowerShell
- Loads the Enterprise Vault PowerShell snapin
- Runs the clear-vaultstorebackupmode cmdlet to clear backup mode from all the vault stores in the vault store group called Express Vault Store Group, which is owned by the server called server1
powershell -psconsolefile "C:\Program Files\Enterprise Vault\EVShell.psc1" -command "& {clear-vaultstorebackupmode -name 'Express Vault Store Group' -evservername server1 -evobjecttype vaultstoregroup}"
For more detailed information about backing up Enterprise Vault, refer to the following document on the Symantec support web site: http://entsupport.symantec.com/docs/312327.