cancel
Showing results for 
Search instead for 
Did you mean: 

Do we have some ready made batch files available

Striker_303
Level 6
Employee

Do we have some ready made batch files available on EV server or download location

which can be used to put it in backup mode and second to remove it from backup mode.

1 ACCEPTED SOLUTION

Accepted Solutions

AndrewB
Moderator
Moderator
Partner    VIP    Accredited

Here's another example of how you can do it. Modify the paths and variables to suit your environment:

To Set Backup Mode:

C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell -PSConsolefile "C:\Program Files (x86)\Enterprise Vault\EVShell.psc1" -command "& {Set-IndexLocationBackupMode -EVServerName EVSERVER -EVSiteName EVSITE}"

C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell -PSConsolefile "C:\Program Files (x86)\Enterprise Vault\EVShell.psc1" -command "& {Set-VaultStoreBackupMode -Name EVSITE -EVServerName EVSERVER -EVObjectType site}"
 

To Clear Backup Mode:

C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell -PSConsolefile "C:\Program Files (x86)\Enterprise Vault\EVShell.psc1" -command "& {Clear-IndexLocationBackupMode -EVServerName EVSERVER -EVSiteName EVSITE}"

C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell -PSConsolefile "C:\Program Files (x86)\Enterprise Vault\EVShell.psc1" -command "& {Clear-VaultStoreBackupMode -Name EVSITE -EVServerName EVSERVER -EVObjectType site}"

View solution in original post

6 REPLIES 6

AndrewB
Moderator
Moderator
Partner    VIP    Accredited

To Set Backup Mode:

set-vaultstorebackupmode -name 'Vault Store Group' -evservername EVServer -evobjecttype vaultstoregroup
 

set-indexlocationbackupmode -evservername EVServer

 

To Clear Backup Mode:

clear-vaultstorebackupmode -name 'Vault Store Group' -evservername EVServer -evobjecttype vaultstoregroup
 

clear-indexlocationbackupmode -evservername EVServer
 

AndrewB
Moderator
Moderator
Partner    VIP    Accredited

Here's another example of how you can do it. Modify the paths and variables to suit your environment:

To Set Backup Mode:

C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell -PSConsolefile "C:\Program Files (x86)\Enterprise Vault\EVShell.psc1" -command "& {Set-IndexLocationBackupMode -EVServerName EVSERVER -EVSiteName EVSITE}"

C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell -PSConsolefile "C:\Program Files (x86)\Enterprise Vault\EVShell.psc1" -command "& {Set-VaultStoreBackupMode -Name EVSITE -EVServerName EVSERVER -EVObjectType site}"
 

To Clear Backup Mode:

C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell -PSConsolefile "C:\Program Files (x86)\Enterprise Vault\EVShell.psc1" -command "& {Clear-IndexLocationBackupMode -EVServerName EVSERVER -EVSiteName EVSITE}"

C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell -PSConsolefile "C:\Program Files (x86)\Enterprise Vault\EVShell.psc1" -command "& {Clear-VaultStoreBackupMode -Name EVSITE -EVServerName EVSERVER -EVObjectType site}"

TonySterling
Moderator
Moderator
Partner    VIP    Accredited Certified

Also, you can use this process to generate your site specific commands:

Generating PowerShell backup commands for your environment

Article: HOWTO37806  |  Created: 2010-12-24  |  Updated: 2011-12-19  |  Article URL http://www.symantec.com/docs/HOWTO37806

As Andrew points out you might need to point to the v1 powershell exe.

C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell

AndrewB
Moderator
Moderator
Partner    VIP    Accredited

Here's an article for using the commands in scripts like the examples I provided:

http://www.symantec.com/docs/HOWTO37649

AndrewB
Moderator
Moderator
Partner    VIP    Accredited

striker, did you need anything else?

Striker_303
Level 6
Employee

No..thats it..Thanks for all your help.