Forum Discussion

GianniCool's avatar
GianniCool
Level 6
15 years ago

Backup Scripts for TSM Tivoli...

Are there any Enterprise Vault backup scripts that work with TSM (Tivoli)?



I am looking for backup scripts that put the index locations and archives in “Backup Mode” before a backup runs and takes them out of “Backup Mode” when the backup completes.

Please advise.

Thanks!
-John

  • We have created a TSM job that calls a .cmd file with the following lines of code:

    SCHTASKS.EXE /RUN /TN "SetBackupMode" >> vault.log
    sleep.exe 300
    ECHO STARTING TSM BACKUP AT %TIME% and %DATE% >> vault.log

    CALL DSMC.EXE Incremental -optfile=Vault.opt >> vault.log

    ECHO FINISHED TSM BACKUP AT %TIME% and %DATE% >> vault.log
    REM This Flips the Archive Bit so the mails are removed from the litigation journal mailboxes
    ECHO Setting -a bit on Vault Store files %TIME% and %DATE% >> vault.log
    attrib -a "F:\Enterprise Vault Stores\*.*" /s >> vault.log
    SCHTASKS.EXE /RUN /TN "ClearBackupMode" >> vault.log

    We went the scheduled tasks route for putting into and taking out backup mode because we were having problems with TSM being able to call the script and put EV into backup mode.  It was just easier to do that then try to figure out the permissions and how to call the TSM job correctly.

    The Vault.opt file that TSM uses only backups the EV related files like the indexes, vault stores, etc....

    The scheduled tasks called SetBackupMode looks like this:

    REM Setting the VaultStores and Indexes for BackupMode
    ECHO Setting Backup Mode AT %TIME% and %DATE% >> vault.log
    powershell -psconsolefile "c:\program files\Enterprise Vault\EVShell.psc1" -command "& {set-VaultStoreBackupMode -name 'VSGroupServerXXX' -evservername ServerXXX -evobjecttype vaultstoregroup}"
    powershell -psconsolefile "c:\program files\Enterprise Vault\EVShell.psc1" -command "& {set-IndexLocationBackupMode -evservername ServerXXX}"

    The ClearBackupMode looks like this:
    REM Clearing the VaultStores and Indexes from BackupMode
    ECHO Clearing Backup Mode AT %TIME% and %DATE% >> vault.log
    powershell -psconsolefile "c:\program files\Enterprise Vault\EVShell.psc1" -command "& {clear-VaultStoreBackupMode -name 'VSGroupServerxxx' -evservername serverxxx -evobjecttype vaultstoregroup}"
    powershell -psconsolefile "c:\program files\Enterprise Vault\EVShell.psc1" -command "& {clear-IndexLocationBackupMode -evservername Serverxxx}"

    if you have any other questions about this please let me know.  Thanks.

    Tom

4 Replies

  • We have created a TSM job that calls a .cmd file with the following lines of code:

    SCHTASKS.EXE /RUN /TN "SetBackupMode" >> vault.log
    sleep.exe 300
    ECHO STARTING TSM BACKUP AT %TIME% and %DATE% >> vault.log

    CALL DSMC.EXE Incremental -optfile=Vault.opt >> vault.log

    ECHO FINISHED TSM BACKUP AT %TIME% and %DATE% >> vault.log
    REM This Flips the Archive Bit so the mails are removed from the litigation journal mailboxes
    ECHO Setting -a bit on Vault Store files %TIME% and %DATE% >> vault.log
    attrib -a "F:\Enterprise Vault Stores\*.*" /s >> vault.log
    SCHTASKS.EXE /RUN /TN "ClearBackupMode" >> vault.log

    We went the scheduled tasks route for putting into and taking out backup mode because we were having problems with TSM being able to call the script and put EV into backup mode.  It was just easier to do that then try to figure out the permissions and how to call the TSM job correctly.

    The Vault.opt file that TSM uses only backups the EV related files like the indexes, vault stores, etc....

    The scheduled tasks called SetBackupMode looks like this:

    REM Setting the VaultStores and Indexes for BackupMode
    ECHO Setting Backup Mode AT %TIME% and %DATE% >> vault.log
    powershell -psconsolefile "c:\program files\Enterprise Vault\EVShell.psc1" -command "& {set-VaultStoreBackupMode -name 'VSGroupServerXXX' -evservername ServerXXX -evobjecttype vaultstoregroup}"
    powershell -psconsolefile "c:\program files\Enterprise Vault\EVShell.psc1" -command "& {set-IndexLocationBackupMode -evservername ServerXXX}"

    The ClearBackupMode looks like this:
    REM Clearing the VaultStores and Indexes from BackupMode
    ECHO Clearing Backup Mode AT %TIME% and %DATE% >> vault.log
    powershell -psconsolefile "c:\program files\Enterprise Vault\EVShell.psc1" -command "& {clear-VaultStoreBackupMode -name 'VSGroupServerxxx' -evservername serverxxx -evobjecttype vaultstoregroup}"
    powershell -psconsolefile "c:\program files\Enterprise Vault\EVShell.psc1" -command "& {clear-IndexLocationBackupMode -evservername Serverxxx}"

    if you have any other questions about this please let me know.  Thanks.

    Tom
  • We do not do anything with SQL when we back up EV.  We have a backup SQL server we do log shipping to every hour and a once a week full backup.  So unfortunately I can't help out with anything with SQL and the pre-script.