Restoring data by using the command-line interface

If you prefer, you can use the Data Protection for Microsoft Exchange Server command-line interface to start a full Microsoft Exchange Server database recovery from a virtual machine.

Before you begin

Ensure that the Microsoft iSCSI Initiator Service is running before you restore any Microsoft Exchange Server database with backup type "VMVSS". If the service is not running, start it. For instructions, see Starting the Microsoft iSCSI Initiator Service.

Procedure

  1. Issue the query command to find the database full backups.
    The following example finds all backups for the Microsoft Exchange Server database called exc_db10.
    tdpexcc q tsm exc_db10  
    
    IBM Storage Protect for Mail: 
    Data Protection for Microsoft Exchange Server 
    Version 8, Release 1, Level 6.0 (C) Copyright
    IBM Corporation 1997, 2018. All rights reserved.  
    
    ... 
    
    Querying IBM Storage Protect server for a list of 
    data backups, please wait....  
    
    Connecting to IBM Storage Protect Server as node 'KINGSTON40_EXC'...
    Connecting to Local DSM Agent 'exc'...
    Using backup node 'KINGSTON40_EXC'...
    
    	Exchange Server	: exc
    
    	Database		: exc_db10
    
    	Backup Date	Size	S	Type		Loc		Object Name
    -------------------	----	-	----		---	----------------------
    07/15/2018 19:17:26	5.40 B	A	full		Srv	20180715191726 (VMVSS)
    
    The operation completed successfully. (rc = 0)
  2. To restore the database without applying transaction logs, issue the following command:
    TDPEXCC RESTore databaseName FULL /BACKUPDEstination=TSM 
    	/BACKUPMethod=VMVSS

    The following sample output results when you issue the command with the Microsoft Exchange Server database called exc_db10.

    TDPEXCC RESTore exc_db10 FULL /BACKUPDEstination=TSM /BACKUPMethod=VMVSS   
    
    IBM Storage Protect for Mail: 
    Data Protection for Microsoft Exchange Server 
    Version 8, Release 1, Level 0.6 (C) Copyright 
    IBM Corporation 1997, 2018. All rights reserved.  
    
    Connecting to IBM Storage Protect Server as node 'KINGSTON40_EXC'...
    
    Connecting to Local DSM Agent 'exc'...
    Using backup node 'KINGSTON40_EXC'... 
    
    Starting Microsoft Exchange restore...  
    Beginning VSS restore of 'exc_db10'...
    
    Restoring 'exc_db10' via file-level copy from snapshot(s). 
    This operation could take a while, please wait
    
    ...
    
    The operation completed successfully. (rc = 0)
    You can restore the database to a different location by adding the /INTODB parameter. For example:
    TDPEXCC RESTore TestDB1 FULL /INTODB=Test2
     /BACKUPDEstination=TSM /BACKUPMethod=VMVSS 

What to do next

You can restore inactive backups by using the Data Protection for Microsoft Exchange Server command-line interface, TDPEXCC. When you issue the restore command, specify the database object name for the specific backup.
To obtain the database object name, issue the following command:
tdpexcc q tsm dbname full /all
After you have the database object name value, specify the database object name on the /OBJect=objectname parameter of the TDPEXCC restore command, where objectname is the database object name. For example:
TDPEXCC RESTore db44 FULL /OBJect=20180715191726 /BACKUPDEstination=TSM 
	/BACKUPMethod=VMVSS