Restoring data by using the command-line interface

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

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 Tivoli Storage Manager for Mail: 
    Data Protection for Microsoft Exchange Server Version 7, Release 1, Level 3.0 
    ... 
    Querying Tivoli Storage Manager server for a list of 
    data backups, please wait....  
    
    Connecting to TSM Server as node "exc_db10"...
    Connecting to Local DSM Agent "exc"...
    Using backup node "exc_db10"...
    
    	Exchange Server	: exc
    
    	Database				:	exc_db10
    
    	Backup Date					Size		S	Type		Loc		Object Name
    -------------------	----		-	----		---	----------------------
    10/15/2014 19:17:26	5.40 B	A	full		Srv	20141015191726 (VMVSS)
    
    The operation completed successfully. (rc = 0)
  2. To restore the database without applying transaction logs, issue the database restore command as shown in the following example:
     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 Tivoli Storage Manager for Mail: 
    Data Protection for Microsoft Exchange Server 
    Version 7, Release 1, Level 3.0 (C) Copyright 
    IBM Corporation 1997, 2015. All rights reserved.  
    
    Connecting to TSM Server as node "exc_db10"...
    
    Connecting to Local DSM Agent "exc"...
    Using backup node "exc_db10"... 
    
    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=20140311131051 /BACKUPDEstination=TSM 
	/BACKUPMethod=VMVSS