PowerShell backup procedure to place the services in read-only mode

Article:TECH66742  |  Created: 2009-01-14  |  Updated: 2012-06-18  |  Article URL http://www.symantec.com/docs/TECH66742
Article Type
Technical Solution

Product(s)

Environment

Problem



PowerShell backup procedure to place the services in read-only mode


Solution



EV 8.0 SP3 and Above
A new PowerShell script (Program Files/Enterprise Vault/Reports/Templates/Transform-Backup.ps1) generates the PowerShell backup commands which you can use to place your Enterprise Vault environment in backup mode. The PowerShell commands are specific to your environment, and you can use them directly in your backup scripts.

The technical note TECH75694 describes how to use the script and the commands it generates.




Prior to EV 8.0 SP3
Create a batch file and add the following PowerShell scripts:


Powershell.exe -psconsolefile "C:\Program Files\Enterprise Vault\evshell.psc1" set-IndexLocationBackupMode EV_Server_Name

Powershell.exe -psconsolefile "C:\Program Files\Enterprise Vault\evshell.psc1" set-vaultstorebackupmode -name 'Vault_Store_Group_Name' -evservername EV_Server_Name -evobjecttype 'vaultstoregroup'
 

To take out of read-only mode, create a batch file and add the following PowerShell scripts:

 
Powershell.exe -psconsolefile "C:\Program Files\Enterprise Vault\evshell.psc1" clear-IndexLocationBackupMode EV_Server_Name

Powershell.exe -psconsolefile "C:\Program Files\Enterprise Vault\evshell.psc1" clear-vaultstorebackupmode -name 'Vault_Store_Group_Name' -evservername EV_Server_Name -evobjecttype 'vaultstoregroup'

 

Windows Server 2008 64-bit

"Symantec.EnterpriseVault.PowerShell.Snapin.dll" is a 32-bit PowerShell Snap-In, and the default Powershell.exe is the  64-bit version.  Attempting to run the previous commands would produce a warning

 
To resolve this issue the 32-bit version of PowerShell needs to be explicitly used in the command, therefore the above command would need to be modified as follows:
 
C:\Windows\SysWOW64\WindowsPowerShell\v1.0\PowerShell.exe -psconsolefile "C:\Program Files\Enterprise Vault\evshell.psc1" set-
vaultstorebackupmode -name 'Vault_Store_Group_Name' -evservername EV_Server_Name -evobjecttype 'vaultstoregroup'
 
C:\Windows\SysWOW64\WindowsPowerShell\v1.0\PowerShell.exe -psconsolefile "C:\Program Files\Enterprise Vault\evshell.psc1" set-vaultstorebackupmode -name 'Vault_Store_Group_Name' -evservername EV_Server_Name -evobjecttype 'vaultstoregroup'
 
To take out of read-only mode, create a batch file and add the following PowerShell scripts:
 
C:\Windows\SysWOW64\WindowsPowerShell\v1.0\PowerShell.exe -psconsolefile "C:\Program Files\Enterprise Vault\evshell.psc1" clear-IndexLocationBackupMode EV_Server_Name

C:\Windows\SysWOW64\WindowsPowerShell\v1.0\PowerShell.exe -psconsolefile "C:\Program Files\Enterprise Vault\evshell.psc1" clear-vaultstorebackupmode -name 'Vault_Store_Group_Name' -evservername EV_Server_Name -evobjecttype 'vaultstoregroup'



Note:
Replace the following attributes with the appropriate names.


EV_Server_Name - replace with the Enterprise Vault server name.
Vault_Store_Group_Name - with the Vault Store Group name.

For additional information on the PowerShell cmdlets refer to the Backup Procedures in the Related Documents section.

Additional Note:
PowerShell scripts are meant to be used with file level backup software (Example:BackupExec and NetBackup). PowerShell scripts are not for use with sector level backup software (Example: BackupExec System Recovery).

 



Legacy ID



317560


Article URL http://www.symantec.com/docs/TECH66742


Terms of use for this information are found in Legal Notices