Forum Discussion

Striker_303's avatar
13 years ago

Do we have some ready made batch files available

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.

  • 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}"

  • 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
     

  • 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}"

  • 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