This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
tsm:tsm_exchange_install [2023/10/04 12:38] manu |
tsm:tsm_exchange_install [2023/10/04 12:43] (current) manu |
||
---|---|---|---|
Line 83: | Line 83: | ||
TCPWINDOWSIZE 255 | TCPWINDOWSIZE 255 | ||
TCPBUFFSIZE 512 | TCPBUFFSIZE 512 | ||
+ | </code> | ||
+ | |||
+ | **excfull.cmd** | ||
+ | <code> | ||
+ | @ECHO OFF | ||
+ | rem ================================================================== | ||
+ | rem Sample Command File - excfull.smp | ||
+ | rem | ||
+ | rem Sample command file containing commands to do a scheduled | ||
+ | rem full backup of the Microsoft Exchange Server databases to | ||
+ | rem TSM storage. | ||
+ | rem | ||
+ | rem This file is meant to be executed by the TSM central scheduler | ||
+ | rem in response to a defined schedule on the TSM server. | ||
+ | rem | ||
+ | rem Complete paths must be given for all file names and non-system | ||
+ | rem commands. | ||
+ | rem | ||
+ | rem Copy this file to excfull.cmd and edit it to match your | ||
+ | rem local environment. | ||
+ | rem ================================================================== | ||
+ | |||
+ | set exc_dir="C:\Program Files\TSM-EXCH\TDPExchange" | ||
+ | cd /d %exc_dir% | ||
+ | |||
+ | set exc_log_global="C:\LogFiles\TSM-EXCH\excfull.log" | ||
+ | set exc_log="C:\Tools\Tivoli\excfull.log" | ||
+ | |||
+ | echo Current date is: > %exc_log% | ||
+ | date /t < NUL >> %exc_log% | ||
+ | echo Current time is: >> %exc_log% | ||
+ | time /t < NUL >> %exc_log% | ||
+ | |||
+ | tdpexcc backup * full /tsmoptfile=dsm.opt /EXCLUDEDAGPASSIVE /logfile=excsch.log /SKIPINTEGRITYCHECK >> %exc_log% | ||
+ | set RC=%ERRORLEVEL% | ||
+ | |||
+ | echo --------------------- >> %exc_log% | ||
+ | echo Return code was %RC% >> %exc_log% | ||
+ | echo ===================== >> %exc_log% | ||
+ | |||
+ | echo Current date is: >> %exc_log% | ||
+ | date /t < NUL >> %exc_log% | ||
+ | echo Current time is: >> %exc_log% | ||
+ | time /t < NUL >> %exc_log% | ||
+ | |||
+ | type %exc_log% >> %exc_log_global% | ||
+ | |||
+ | powershell.exe C:\Tools\Tivoli\listbackup.ps1 | ||
+ | exit %RC% | ||
+ | </code> | ||
+ | |||
+ | **listbackup.ps1** | ||
+ | <code> | ||
+ | cd "C:\Program Files\TSM-EXCH\FlashCopyManager" | ||
+ | |||
+ | import-module .\FmModuleExc.dll | ||
+ | import-module .\FmModuleFs.dll | ||
+ | import-module .\FmModuleMMC.dll | ||
+ | import-module .\FmModuleSQL.dll | ||
+ | Get-DpExcBackup|export-csv -NoTypeInformation -LiteralPath "C:\LogFiles\Tsm-EXCH\backuplist.csv" | ||
</code> | </code> | ||