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/02 22:50] manu |
tsm:tsm_exchange_install [2023/10/04 12:43] (current) manu |
||
|---|---|---|---|
| Line 42: | Line 42: | ||
| - | Register nodes: | + | === Register nodes === |
| * backup_client_node: local node for Windows server able to to a snapshot VSS (service started as local administrator) | * backup_client_node: local node for Windows server able to to a snapshot VSS (service started as local administrator) | ||
| * data_protection_node: node that will be used to do a backup/restore of exchange application (service started with Exchange rights) | * data_protection_node: node that will be used to do a backup/restore of exchange application (service started with Exchange rights) | ||
| Line 56: | Line 57: | ||
| grant proxynode target=DAG_node agent=data_protection_node | grant proxynode target=DAG_node agent=data_protection_node | ||
| </cli> | </cli> | ||
| + | |||
| + | |||
| + | PS C:\Program Files\TSM-EXCH\TDPExchange> .\tdpexcc.exe query tsm * incr /all /dagnode=dag2019 /tsmoptfile=dsm.opt | ||
| + | |||
| + | **tdpexc.cfg** | ||
| + | <code> | ||
| + | LOCALDSMAgentnode <baclient> | ||
| + | DAGNODe dag2019 | ||
| + | VSSPOLICY * * * * MC_EXC | ||
| + | MOUNTRW No | ||
| + | LASTPRUNEDate 12/20/2022 01:10:09 | ||
| + | </code> | ||
| + | |||
| + | **dsm.opt** (exchange) | ||
| + | <code> | ||
| + | NODENAME exch_TDP | ||
| + | PASSWORDACCESS GENERATE | ||
| + | TCPSERVERADDRESS ispprod | ||
| + | TCPPORT 1500 | ||
| + | HTTPport 1581 | ||
| + | |||
| + | |||
| + | LARGECOMMBUFFERS YES | ||
| + | TCPNODELAY YES | ||
| + | TCPWINDOWSIZE 255 | ||
| + | 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> | ||