Forum Discussion

Judy_Glazier's avatar
16 years ago

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...
  • TonySterling's avatar
    16 years ago

    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.