Restoring an Exchange Database Using the Command Line Interface

To run the Exchange database restores from the command line interface, you must use an input XML file. This file contains the attributes or arguments that are passed to the command parameters setting up your backup operations.

This input XML file can be obtained from one of the following ways:

  • Download the input XML file template and save it on the computer from where the restore runs.

  • In the CommCell Console, configure a restore job, and then save it as a script to the computer where the restore runs.

Before You Begin

Before you run command line operations, use the qlogin command to log on to the CommServe computer.

Procedure

  1. Download the restore_template.xml file and save it on the computer from where the command is run.

  2. Run the following command from the software installation directory\Base folder.

    qoperation execute -af restore_template.xml -clientName "client name"

  3. Verify the status of the job using the following command:

    qlist job −j <jobID>

  4. When the job is completed, log off the CommServe host.

    qlogout [−cs <commserve_host_name>] [−all] [−tf <tokenfile>] [−tk <token>] [−h]

Examples

Task

Command

Out-of-place restore

qoperation execute -af restore_template.xml -clientName client1

In-place restore

qoperation execute -af restore_template.xml -clientName client1 -toTimeValue 2015-02-23

Loading...