> For the complete documentation index, see [llms.txt](https://documentation.atempo.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://documentation.atempo.com/tina-4.9.5/tina-4.9.5-en/administration-guide/restore/exchange.md). Agents can also search and read this documentation through its [MCP server](https://documentation.atempo.com/~gitbook/mcp).

# Exchange

## Restoring with Tina HyperVision Agent for Exchange

This topic contains the following information:

* [<mark style="color:blue;">Supported databases</mark>](#supported-databases)
* [<mark style="color:blue;">Permissions</mark>](#permissions)
* [<mark style="color:blue;">Prerequisites</mark>](#prerequisites)
* [<mark style="color:blue;">Limitations</mark>](#limitations)
* [<mark style="color:blue;">Representation of Exchange objects in the Restore and Archive interface</mark>](#representation-of-exchange-objects-in-the-restore-and-archive-interface)
* [<mark style="color:blue;">Restore scenarios</mark>](#restore-scenarios)
* [<mark style="color:blue;">Restoring in command mode</mark>](#restoring-in-command-mode)

### Supported databases

The Exchange mailbox server contains one or more mailbox databases, each containing a database file and log files.\
The list of databases supported by Tina HyperVision Agent for Exchange restores is as follows:

* User's mailboxes
* Public Folder mailboxes
* Individual components (emails, Notes, calendar items) of user's and public folder\
  mailboxes cannot be restored.
* Archive mailboxes can be restored in vault mode, but\
  they are not restored at the same time as user\
  mailboxes. You must know which database your\
  archive mailbox is in before restoring it.

### Permissions

To perform restores, the Tina user must be part of the Organization Management role group.

For more information on organization management, see <http://technet.microsoft.com/frfr/library/dd335087.aspx>.

### Prerequisites

**Mailbox existence for restore**

Information on mailbox properties is stored in Windows Active Directory (not in the Exchange databases).

Therefore, if you want to restore the content of a mailbox, you must\
first make sure it has the same properties as those present at the\
time of backup. This is not the case, for example, for a mailbox that\
was deleted and then manually recreated.

To avoid this, you must reconnect the mailbox using the appropriate system tools, then restore the mailbox content with Tina HyperVision Agent for Exchange.

For more information on disconnected mailboxes, see\
<http://technet.microsoft.com/fr-fr/library/bb232039.aspx.>

**Restoring to a recovery database**

This topic describes the prerequisites for restoring to a recovery database (Recovery Database):

* The database to be restored is known to Exchange. If the database has been\
  deleted, you must recreate it before restoring it.
* Before restoring to a recovery database on a server, check the following:
  * There is no recovery database on the Exchange server. If this\
    is the case, remove them all using either the Exchange Admin Center or\
    the Remove-MailboxDatabase cmdlet. Then delete all the files for these\
    recovery databases from disk.
  * There is no other recovery database mounted on the\
    destination server.
  * There is no recovery database with the same name (mounted or\
    not).

**Extracting mailboxes from a recovery database**

This topic describes the prerequisites for extracting mailboxes from a\
recovery database (Recovery Database):

* Exchange 2013. The mailbox must not be hosted in a mailbox database created with an Exchange version earlier than Cumulative Update 8 (CU8) for Exchange Server 2013.
* Indexing must be disabled for the mailbox database concerned.\
  Use the Set-MailboxDatabase \<db\_name> -IndexEnabled $false cmdlet to\
  prevent Exchange Search from indexing the mailbox database.\
  For more information on the Set-MailboxDatabase cmdlet, see\
  [<mark style="color:blue;">https://technet.microsoft.com/fr-fr/library/bb123971(v=exchg.160).aspx.</mark>](https://technet.microsoft.com/fr-fr/library/bb123971\(v=exchg.160\).aspx.)
* Passive copies of the mailbox database must be in a\
  "Healthy" state. Use the Get-MailboxDatabaseCopyStatus \<db\_name> cmdlet to check\
  the state of the passive copies of the mailbox database.\
  For more information on the Get-MailboxDatabaseCopyStatus cmdlet, see\
  [<mark style="color:blue;">https://technet.microsoft.com/fr-fr/library/dd298044(v=exchg.160).aspx.</mark>](https://technet.microsoft.com/fr-fr/library/dd298044\(v=exchg.160\).aspx.)

### Limitations

Take note of these limitations for the Tina HyperVision Agent for Exchange application:

* You cannot use Web Restore. To restore data from Tina HyperVision Agent for Exchange, use the Restore and Archive interface.
* If you use the mailbox restore feature (via the\
  restore options in the Restore window of the Restore and Archive interface) to\
  restore an archive mailbox, it is restored to the Recovered\
  Data folder of the user's mailbox. Extraction of the archive mailbox\
  cannot be performed to its original location.

### Representation of Exchange objects in the Restore and Archive interface

Every object in the Exchange architecture is represented in the Restore and\
Archive tree.

**In the present**\
This image shows Exchange objects in the Restore and Archive tree in the\
present:

<figure><img src="https://137371609-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HOI4mniMS7pDfClN83G%2Fuploads%2Fgit-blob-a7124acfc8a186ce6b987a4fec25c2333ae91d5f%2Fimage%20(386).png?alt=media" alt=""><figcaption></figcaption></figure>

The Exchange objects are as follows:

* **Information**

This meta-directory provides information about the Tina version. It also contains all the environment variables that can be set for the HV Agent for Exchange application.

* **Databases**

This meta-directory reproduces the server structure. It contains the objects representing the various mailbox databases. It contains information on these elements:

* The active node of the database.
* The database's globally unique identifier (GUID).
* The size of the database.
* The database status; whether it is mounted, whether it is part of the DAG, or whether it is replicated or not.

> **Note**: You can filter the databases visible in the present tree using regular expressions. See TINA\_HVX2K\_DB\_FILTER.

This table describes the database icons in the present:

| Icon               | Description                                             |
| ------------------ | ------------------------------------------------------- |
| ⚙️📦 *(grey icon)* | The grey icon indicates that the database is backed up. |

### Restore scenarios

This topic contains the following scenarios:

* [<mark style="color:blue;">Principles</mark>](#principles)
* [<mark style="color:blue;">Operation to perform before any database restore</mark>](#operation-to-perform-before-any-database-restore)
* [<mark style="color:blue;">Scenario 1: Restoring a database to its original location</mark>](#scenario-1-restoring-a-database-to-its-original-location)
* [<mark style="color:blue;">Scenario 2: Restoring a database to a</mark> \ <mark style="color:blue;">recovery database without mailbox extraction</mark>](#scenario-2-restoring-a-database-to-a-recovery-database-without-mailbox-extraction)
* [<mark style="color:blue;">Scenario 3: Restoring a database to a</mark> \ <mark style="color:blue;">recovery database with mailbox extraction</mark>](#scenario-3-restoring-a-database-to-a-recovery-database-with-mailbox-extraction)

> **Note**: Restore steps common to all Tina applications, such as browsing by point in time, viewing\
> restore information, and so on, are described in detail in the Tina Restore Documentation. Only aspects specific to Tina HyperVision Agent for Exchange are covered in this manual.

#### Principles

Tina HyperVision Agent for Exchange lets you restore all the information contained in Exchange databases simply and quickly using the Restore and Archive interface.\
You can not only recover a database that was lost due to a handling error or disk loss, but also restore a database as it was on a given date.

> **Note**: The format of Exchange databases changes depending on the Exchange Server version. A database restore must therefore be performed to an identical Exchange Server version.

**Multiple backup strategies**

Displaying multiple backup strategies in the Restore and Archive interface can result in an inconsistent restore of data. To restore consistent data, you must limit the display to a single strategy:

1. Select strategy A, B, C, or D. The All option must not be selected. All unnecessary nodes are removed from the Restore and Archive interface.
2. Select the version you want to restore.
3. Continue the restore procedure.

**Restore options**

These two images show the Settings tab of the Restore window. Having selected New Location, you can specify a single path for all files, or two paths if you want to restore the database and log files to separate locations:

<figure><img src="https://137371609-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HOI4mniMS7pDfClN83G%2Fuploads%2Fgit-blob-8c95decd68531688fcc5c49a3d8542573473d08e%2Fimage%20(387).png?alt=media" alt=""><figcaption></figcaption></figure>

<figure><img src="https://137371609-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HOI4mniMS7pDfClN83G%2Fuploads%2Fgit-blob-9e22e5d3f0bd09f1808ebd996911b71af8df678a%2Fimage%20(389).png?alt=media" alt=""><figcaption></figcaption></figure>

This image shows the Behavior tab:

<figure><img src="https://137371609-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HOI4mniMS7pDfClN83G%2Fuploads%2Fgit-blob-3c191e7933814bb551f77f3a117ae19f4641feff%2Fimage%20(390).png?alt=media" alt=""><figcaption></figcaption></figure>

This table describes all the restore options available in the Restore window\
when you restore a database or mailbox:

<table><thead><tr><th width="222.33331298828125">Restore option</th><th>Description</th></tr></thead><tbody><tr><td><strong>Settings tab</strong></td><td></td></tr><tr><td><strong>Destination server</strong></td><td>Specifies the destination Exchange server on which you want to restore databases or mailboxes.<strong>Copy status:</strong> Specifies the copy status for each Exchange server (Active or Passive).<strong>(Auto):</strong> Tina HyperVision Agent for Exchange automatically selects the destination Exchange server, the one hosting the active copy of the database to be restored.</td></tr><tr><td><strong>Restore to a recovery database</strong></td><td>Lets you restore one or more mailboxes via a recovery database.If this option is enabled (default), the database is first restored to a recovery database, then the mailboxes are restored according to the selected options.If it is not enabled, the entire database is restored to its original location.</td></tr><tr><td><strong>Restore destination</strong></td><td><p><strong>Original location:</strong> restores the database to its original location.</p><p><strong>New location:</strong> restores the database to another location (you can set different paths for the database and the logs).</p></td></tr><tr><td><strong>Remount the restored database</strong></td><td>Indicates that the database must be mounted after the restore.</td></tr><tr><td><strong>Restore selected mailboxes</strong></td><td>Indicates that only the selected mailboxes are extracted from the restored database.</td></tr><tr><td><strong>Restore to the "Recovered Data" folder</strong></td><td>The selected mailboxes are restored to a folder named <strong>Recovered Data</strong>.To restore to the original location, do not select this option.</td></tr><tr><td><strong>Behavior tab</strong></td><td>Lets you define the behavior to adopt when cartridges required for the restore are offline or in an offline slot.</td></tr><tr><td><strong>Issue an operator request for each offline cartridge</strong></td><td>Generates an operator request when a cartridge needs to be brought online, or when its slot is disabled (default option).</td></tr><tr><td><strong>Cancel</strong></td><td>Cancels the restore.The object structure is restored, but not the data.</td></tr><tr><td><strong>Show list of offline cartridges</strong></td><td>Lets you identify missing cartridges and bring them online if needed.If a cartridge is offline, a dedicated window appears.</td></tr></tbody></table>

**Copying logs during restore**

When you perform a restore, the current logs directory is emptied and the logs are sent to a new TnBakLogs subdirectory. This mechanism lets you use specific tools such as Powershell to replay the logs and manually remount the databases.\
This directory can be deleted once the databases have been remounted.

> **Note**: This mechanism does not work for restores to a recovery database.

#### Operation to perform before any database restore

Before any database restore, you must allow database restore on the Exchange server.

**Allow database restore**

> **Note**: Exchange Server services must be started.

1. In your browser, enter the URL of the Exchange Admin Center: https\:///ecp
2. In the **Features** panel, click Servers and select your server from the list.
3. Click the **Databases** tab and select the mailbox database to restore.
4. Click the **Edit** button. The Mailbox Database window appears.
5. In the **Maintenance** tab, check the This database can be overwritten by a restore box. This image shows the Maintenance tab:

<figure><img src="https://137371609-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HOI4mniMS7pDfClN83G%2Fuploads%2Fgit-blob-bf4db441709051c9215dac30f00b02b63268a52e%2Fimage%20(391).png?alt=media" alt=""><figcaption></figcaption></figure>

6. Click Save to confirm.

   > **Note**: This operation must be repeated for each restore since the box automatically becomes unchecked after a restore.

#### Scenario 1: Restoring a database to its original location

> **Note**: Restoring a database to its original location means that you do not restore the database to a recovery database. The production database is overwritten by the restored database.

When databases are restored to their original location, the restored\
databases overwrite the current databases. The current databases are therefore not\
accessible to users during the restore. Restoring a single database also allows other databases to keep running during the restore.

In a DAG environment, the active copy of the database can move from one node to another. With Tina HyperVision Agent for Exchange, you do not need to know which node the database backup was performed on.

**Prerequisites**

* Make sure you have the disk space needed to restore the database\
  and its logs.
* Allow database restore on the Exchange server. See [<mark style="color:blue;">Operation to perform before any database restore.</mark>](#operation-to-perform-before-any-database-restore)

**Restore the database to its original location**

**Step 1: Prepare the restore in the Exchange Admin Center**

1. Start the Exchange Admin Center and suspend database replication. See [<mark style="color:blue;">http://technet.microsoft.com/fr-fr/library/dd298159.aspx.</mark>](http://technet.microsoft.com/fr-fr/library/dd298159.aspx.)
2. Select the active database and click the More button.
3. Select **Dismount the database.**

**Step 2: Perform the restore**

1. Launch the Restore and Archive interface on the HV Agent for Exchange application.
2. Select **Backups Strategy** and select the strategy you used to back up the objects you want to restore.
3. In the file tree, select the object you want to restore and select Tree Selected Object Versions. The point-in-time versions window appears. It contains the list of backups for the selected object.

> **Note**: If you need to know the location of the object to restore, you can select Backup Search to open the Search for backed-up objects window.

1. Select the version you want to restore from the list and click Synchronize. The file tree is updated. The list of all objects needed for the restore is displayed.
2. Select the database to restore by checking the box to the left of the database. The database and the directories containing the database's logs are selected.
3. Select Restore Execute to restore the selected database. The Restore window appears.
4. Set the following restore options:

   **In the Settings tab.**

   1. Select the Exchange server on which you want to restore the database. All available destination Exchange servers host a copy of the database to be restored.
   2. Deselect the Restore to a recovery database option to restore the database to its original location. The database is overwritten unless it is mounted.
   3. Select the Do not replay current logs option if you do not want to replay the current logs after the database restore.
   4. Select Do not replay restored logs if you do not want to replay the restored logs after the database restore.
   5. Select the Remount the restored database option to automatically mount the database after the restore.
   6. Deselect the Restore selected mailboxes option.
   7. Deselect the Restore to the "Recovered Data" folder option.

   **In the Behavior tab.**

   Specify the behavior to adopt when certain cartridges required for the restore are offline (outside the library), or located in a slot that is offline. By default, an operator request is generated when a cartridge needs to be brought online, or when the slot containing the cartridge is disabled. See Restore options.
5. Click **OK**. The restore is performed.

**Step 3: Resume database replication**

1. In the Exchange Admin Center, resume database replication. The database you just restored will be available to all other nodes in your DAG. See [<mark style="color:blue;">http://technet.microsoft.com/fr-fr/library/dd298159.aspx.</mark>](http://technet.microsoft.com/fr-fr/library/dd298159.aspx.)
2. If needed, use the Exchange Admin Center to set the node that should host the active copy of the database.

**Recommendation**

Use the Get-MailboxRestoreRequest cmdlet to check the status of the\
restore request if you think your data was not restored correctly in the file tree of the Restore and Archive interface. The cmdlet indicates whether the request is completed, in progress, or queued.

For more information on the Get-MailboxRestoreRequest cmdlet, see\
[<mark style="color:blue;">http://technet.microsoft.com/fr-fr/library/ff829907(v=exchg.150).aspx.</mark>](http://technet.microsoft.com/fr-fr/library/ff829907\(v=exchg.150\).aspx.)

#### Scenario 2: Restoring a database to a recovery database without mailbox extraction

Tina uses the Exchange Server Recovery Database (RDB)\
feature. The recovery database is a special type of mailbox database that lets you mount a restored mailbox database and extract data from it, as part of a recovery operation.

For more information on the recovery database, see\
[<mark style="color:blue;">http://technet.microsoft.com/fr-fr/library/dd876954.aspx.</mark>](http://technet.microsoft.com/fr-fr/library/dd876954.aspx.)

In a DAG configuration, you can restore and mount the active copy of a\
database to a recovery database. This restore scenario is useful if\
you want to restore the database to another location.

Since all restore operations take place in the\
recovery database, this scenario lets you avoid:

* Performing multiple operations on the passive copies of the databases in your\
  DAG.
* Causing an interruption in your production environment.

**Prerequisites**

* Make sure you have the disk space needed to restore the database\
  and its logs.
* Allow database restore on the Exchange server. See [<mark style="color:blue;">Operation to</mark> <mark style="color:blue;">perform before any database restore.</mark>](#operation-to-perform-before-any-database-restore)
* The database to be restored is known to Exchange. If the database has been\
  deleted, you must recreate it before restoring it.
* Before restoring to a recovery database on a server, check the following:
  * There is no recovery database on the Exchange server. If this\
    is the case, remove them all using either the Exchange Admin Center or\
    the Remove-MailboxDatabase cmdlet. Then delete all the files for these\
    recovery databases from disk.
  * There is no other recovery database mounted on the\
    destination server.
  * There is no recovery database with the same name (mounted or\
    not).

**Restore a database to a recovery database without mailbox extraction**

1. Launch the Restore and Archive interface on the HV Agent for Exchange application.
2. Select **Backup Strategy** and select the strategy you used to back up the objects you want to restore.
3. In the file tree, select the object you want to restore and select Tree Selected Object Versions. The point-in-time versions window appears. It contains the list of backups for the selected object.

   > **Note**: If you need to know the location of the object to restore, you can select Backup Search to open the Search for backed-up objects window.
4. Select the version you want to restore from the list and click **Synchronize**. The file tree is updated. The list of all objects needed for the restore is displayed.
5. Select the mailbox database to restore by checking the box to the left of the database.
6. Select **Restore >** **Execute** to restore the selected mailbox database. The Restore window appears.
7. Set the following restore options:

   **In the Settings tab.**

   1. Select the Exchange server on which you want to restore the mailbox database. All available destination Exchange servers host a copy of the database to be restored.
   2. Select the Restore to a recovery database option to restore the mailbox database to a recovery database.
   3. Select a restore path for the recovery database (if you do not want to use the default path):
      1. Either by selecting the Original location option.
      2. Or by selecting the New location option and then clicking the Browse buttons to specify, as needed: a single path for the mailbox database and log files, or two different paths.
   4. Select **Do not replay restored logs** if you do not want to replay the restored logs after the database restore.
   5. Select the **Remount the restored database** option to automatically mount the database after the restore.
   6. Deselect the Restore selected mailboxes option (no mailbox extraction).

   **In the Behavior tab.**

   Specify the behavior to adopt when certain cartridges required for the restore are offline (outside the library), or located in a slot that is offline. By default, an operator request is generated when a cartridge needs to be brought online, or when the slot containing the cartridge is disabled.
8. Click **OK**. The restore is performed and a new recovery database named \<rdb\_database\_name> is created on the Exchange server.

**Additional step: Restore a mailbox in Exchange Server**

> **Note**: Keep in mind that during mailbox recovery, the\
> original database remains accessible to users.

1. Use the \<New-MailboxRestoreRequest> cmdlet in the shell to extract the data from the newly created recovery database. For more information on restoring data from a recovery database, see [<mark style="color:blue;">http://technet.microsoft.com/fr-fr/library/ee332351.aspx</mark>](http://technet.microsoft.com/fr-fr/library/ee332351.aspx) and [<mark style="color:blue;">http://technet.microsoft.com/fr-fr/library/ff829875.aspx</mark>](http://technet.microsoft.com/fr-fr/library/ff829875.aspx)<mark style="color:blue;">.</mark>
2. Once your data has been recovered, you can delete the recovery database using the Remove-MailboxDatabase cmdlet in the shell, as well as its files in Windows Explorer. For more information on deleting a recovery database, see [<mark style="color:blue;">http://technet.microsoft.com/fr-fr/library/aa997931.aspx</mark>](http://technet.microsoft.com/fr-fr/library/aa997931.aspx)<mark style="color:blue;">.</mark>

**Recommendation**

Use the Get-MailboxRestoreRequest cmdlet to check the status of the\
restore request if you think your data was not restored correctly in the file tree of the Restore and Archive interface. The cmdlet indicates whether the request is completed, in progress, or queued.\
For more information on the Get-MailboxRestoreRequest cmdlet, see\
[<mark style="color:blue;">http://technet.microsoft.com/fr-fr/library/ff829907(v=exchg.150).aspx.</mark>](http://technet.microsoft.com/fr-fr/library/ff829907\(v=exchg.150\).aspx.)

#### Scenario 3: Restoring a database to a recovery database with mailbox extraction

Tina uses the Exchange Server Recovery Database (RDB)\
feature. The recovery database is a special type of mailbox database that lets you mount a restored mailbox database and extract data from it, as part of a recovery operation.

For more information on the recovery database, see\
[<mark style="color:blue;">http://technet.microsoft.com/fr-fr/library/dd876954.aspx.</mark>](http://technet.microsoft.com/fr-fr/library/dd876954.aspx.)

In a DAG configuration, you can restore and mount the active copy of a\
database to a recovery database. This restore scenario is useful if you only want to recover one or more mailboxes from that database.

Since all restore operations will take place in the recovery database, this scenario lets you avoid:

* Performing multiple operations on the passive copies of the databases in your\
  DAG.
* Causing an interruption in your production environment.

**Prerequisites**

* See the prerequisites for Extracting mailboxes from a recovery database before restoring mailboxes from a recovery database.
* Make sure you have the disk space needed to restore the database\
  and its logs.
* Allow database restore on the Exchange server. The\
  database to be restored is known to Exchange. If the database has been deleted, you must recreate it before restoring it.
* Before restoring to a recovery database on a server, check the following:
  * There is no recovery database on the Exchange server. If this\
    is the case, remove them all using either the Exchange Admin Center or\
    the Remove-MailboxDatabase cmdlet. Then delete all the files for these\
    recovery databases from disk.
  * There is no other recovery database mounted on the\
    destination server.
  * There is no recovery database with the same name (mounted or\
    not).

#### Restore a database to a recovery database with mailbox extraction

1. Launch the Restore and Archive interface on the HV Agent for Exchange application.
2. Select Backup Strategy and select the strategy you used to back up the objects you want to restore.
3. In the file tree, select the object you want to restore and select Tree Selected Object Versions. The point-in-time versions window appears. It contains the list of backups for the selected object.

   > **Note**: If you need to know the location of the object to restore, you can select Backup Search to open the Search for backed-up objects window.
4. Select the version you want to restore from the list and click Synchronize. The file tree is updated. The list of all objects needed for the restore is displayed.
5. Select the mailbox database to restore by checking the box to the left of the database. Select one or more mailboxes to restore by checking the box to the left of the mailboxes and their corresponding Edb and Logs directories.

   > **Note**: An error message appears if you try to restore an inconsistent set of logs.
6. Select Restore Execute to restore the selected mailbox database. The Restore window appears.
7. Set the following restore options:

   **In the Settings tab:**

   1. Select the Exchange server on which you want to restore the mailbox database and its selected mailboxes. All available destination Exchange servers host a copy of the database to be restored.
   2. Select the Restore to a recovery database option to restore the mailbox database and its selected mailboxes to a recovery database.
   3. Select a restore path for the recovery database (if you do not want to use the default path):
      1. Either by selecting the Original location option.
      2. Or by selecting the New location option and then clicking the Browse buttons to specify, as needed: a single path for the mailbox database and log files, or two different paths.
   4. Select the Remount the restored database option to automatically mount the database after the restore.
   5. Select the Restore selected mailboxes option to restore all mailboxes (mailbox extraction).
   6. Select the Restore to the "Recovered Data" folder option if you want to restore the content of the selected mailboxes to a folder named Recovered data. Or deselect the Restore to the "Recovered Data" folder option if you want to restore the content of the selected mailboxes to their original location.

   **In the Behavior tab:**

   Specify the behavior to adopt when certain cartridges required for the restore are offline (outside the library), or located in a slot that is offline. By default, an operator request is generated when a cartridge needs to be brought online, or when the slot containing the cartridge is disabled.
8. Click OK. The restore is performed and a new recovery database named \<rdb\_ database\_name> is created on the Exchange server

**Additional step: Restore a mailbox in Exchange Server**

> **Note**: Keep in mind that during mailbox recovery, the original database remains accessible to users.

1. Use the New-MailboxRestoreRequest cmdlet in the shell to extract the data from the newly created recovery database. For more information on restoring data from a recovery database, see [<mark style="color:blue;">http://technet.microsoft.com/fr-fr/library/ee332351.aspx</mark> ](http://technet.microsoft.com/fr-fr/library/ee332351.aspx)and [<mark style="color:blue;">http://technet.microsoft.com/fr-fr/library/ff829875.aspx</mark>](http://technet.microsoft.com/fr-fr/library/ff829875.aspx)<mark style="color:blue;">.</mark>
2. Once your data has been recovered, you can delete the recovery database using the Remove-MailboxDatabase cmdlet in the shell, as well as its files in Windows Explorer.

   For more information on deleting a recovery database, see\
   <http://technet.microsoft.com/fr-fr/library/aa997931.aspx.>

**Recommendation**

Use the <kbd>Get-MailboxRestoreRequest</kbd> cmdlet to check the status of the\
restore request if you think your data was not restored correctly in the file tree of the Restore and Archive interface. The cmdlet indicates whether the request is completed, in progress, or queued.\
For more information on the Get-MailboxRestoreRequest cmdlet, see\
<http://technet.microsoft.com/fr-fr/library/ff829907(v=exchg.150).aspx.>

### Restoring in command mode

If you want to restore mailbox databases in command mode, you must run the tina\_restore command with the -xml\_restore\_parameters\_ file parameter. This parameter lets you provide an XML file containing information specific to the restore.

> **Note**: The general syntax and parameters of the tina\_restore command are described in detail in the Atempo-Tina Command Line Interface User's Guide. Only parameters specific to Tina HyperVision Agent for Exchange are covered in this topic.

#### XML parameters

This table describes the XML parameters you can use in the XML file:

<table><thead><tr><th width="181.66668701171875">XML parameter</th><th>Description</th></tr></thead><tbody><tr><td><code>&#x3C;XchNgaRestoration></code></td><td>Specifies the restore with Tina HyperVision Agent for Exchange.Specifies the destination Exchange server on which you want to restore a mailbox database.</td></tr><tr><td><code>&#x3C;RestoreInRdb></code></td><td>Specifies that you want to restore the mailbox database to a recovery database.</td></tr><tr><td><code>&#x3C;RdbPaths></code></td><td>Specifies the paths for the <code>.edb</code> and <code>.logs</code> files for the recovery database.The syntax consists of the edb file path followed by the logs file path. The paths are separated by a semicolon.<code>&#x3C;RdbPaths>edb_path;logs_path&#x3C;/RdbPaths></code>The specified paths must exist on the selected destination server.</td></tr><tr><td><code>&#x3C;DoNotReplayLogs></code></td><td><p>Specifies that current logs are not replayed after a database restore. You cannot use this parameter in the following cases:</p><ul><li>If you are performing a restore to a recovery database.</li><li>If you do not remount the databases automatically after a restore (if you do not specify the <code>&#x3C;CompleteNowait></code> parameter).</li></ul></td></tr><tr><td><code>&#x3C;NoCompletion></code></td><td>Specifies that restored logs are not replayed after a database restore.</td></tr><tr><td><code>&#x3C;CompleteNowait></code></td><td>Specifies that the mailbox database must be remounted after the restore.</td></tr><tr><td><code>&#x3C;RestoreSelectedMailboxes></code></td><td>Specifies that mailboxes are extracted from the mailbox database.</td></tr><tr><td><code>&#x3C;RestoreMailboxesApart></code></td><td>Specifies that mailboxes are restored to a folder named <em>Recovered data</em>.</td></tr></tbody></table>

#### Use cases

This topic provides examples of XML files for restoring a mailbox database in command mode.

**Example 1. Restore a mailbox database to its original**\
**location.**

In this example, the mailbox database is restored to its original location on the destination server QAW2K12XCH2K13A (). The\
mailbox database is remounted after the restore (). Current\
logs () and restored logs () are not replayed.

> **Note**: Restoring a database to its original location means that you do not restore the database to a recovery database. The production database is overwritten by the restored database.

```xml
<?xml version="1.0" encoding="UTF-8" ?>
<XchNgaRestoration version="1.0">
    <CompleteNowait/>
    <TargetServer>QAW2K12XCH2K13A</TargetServer>
    <DoNotReplayLogs/>
    <NoCompletion/>
</XchNgaRestoration>
```

**Example 2. Restore a mailbox database to a**\
**recovery database without mailbox extraction.**

In this example, the mailbox database is restored to a\
recovery database () to a location different from the original one\
(RdbPaths) on the destination server QAW2K12XCH2K13A (). The\
mailbox database is remounted after the restore (). Restored\
logs () are not replayed.

```xml
<?xml version="1.0" encoding="UTF-8" ?>
<XchNgaRestoration version="1.0">
<RestoreInRdb/>
<RdbPaths>c:\temp\mydb;c:\temp\mydb</RdbPaths>
<CompleteNoWait/>
<TargetServer>QAW2K12XCH2K13A</TargetServer>
<NoCompletion/>
</XchNgaRestoration>
```

**Example 3. Restore a mailbox database to a**\
**recovery database with mailbox extraction.**

In this example, the mailbox database is restored to a\
recovery database () to a location different from the original one () on the destination server QAW2K12XCH2K13A (). The mailbox database is remounted after the restore (). Restored logs () are not replayed. Mailboxes are extracted from the mailbox database () and restored to a\
folder named Recovered data ().

```xml
<?xml version="1.0" encoding="UTF-8" ?>
<XchNgaRestoration version="1.0">
<RestoreInRdb/>
<RdbPaths>c:\temp\mydb;c:\temp\mydb</RdbPaths>
<CompleteNoWait/>
<TargetServer>QAW2K12XCH2K13A</TargetServer>
<NoCompletion/>
<RestoreSelectedMailboxes />
<RestoreMailboxesApart />
</XchNgaRestoration>
```

## Tina HyperVision Agent for Exchange environment variables

This table describes the environment variables of the HV Agent for Exchange application:

| Environment variable                                      | Possible values \[default]                     | Description                                                                                                                                                                                                                                                                                                                                                                                                                               | Status                                                                                                                                                                            |
| --------------------------------------------------------- | ---------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `TINA_APP_LIB_PATH`                                       | Path.Automatically set to `libtina_ngax2k.dll` | Relative or absolute path of the software library for the Exchange Server module on the client machine hosting the Exchange server.Example: `libtina_ngax2k.dll` or `C:\Program Files\Atempo\tina\Bin\libtina_ngax2k.dll`                                                                                                                                                                                                                 | Required                                                                                                                                                                          |
| `TINA_HOST_LIST`                                          | Character string                               | List of systems for which you can launch the job proxy. The value format is as follows:`system1;system2;...;systemN.`                                                                                                                                                                                                                                                                                                                     | Optional                                                                                                                                                                          |
| `TINA_HVX2K_DELEGATION_STRATEGY`                          | \[Active], Passive                             | When this variable is set to Active, the backup of a database is delegated to an Exchange server hosting an active copy of that database.If this variable is set to Passive, the backup of a database is delegated to an Exchange server hosting a passive copy of that database. If no such server exists or if the variable has another value, the backup is delegated to the Exchange server hosting the active copy of that database. | Optional                                                                                                                                                                          |
| `TINA_HVX2K_PREFERRED_SERVERS_FOR_PASSIVE_COPIES_BACKUPS` | Character string                               | Specifies the servers to use for backing up passive copies of each database.This variable indicates the list of servers to use for backup in decreasing order of priority.This variable contains a list of specifications separated by pipe characters (\`                                                                                                                                                                                | `). Each specification consists of the database name followed by a colon, and a list of servers separated by commas.<br><br>Format:<br>`database\_name1:server1\_1,...,server1\_p |
| `TINA_HVX2K_SHARE_VSS_SNAPSHOT`                           | \[Yes], No                                     | Specifies whether a VSS snapshot created on an Exchange server must be shared between the different child jobs of a parallel backup, or whether each child job must create its own snapshot.                                                                                                                                                                                                                                              | Optional                                                                                                                                                                          |
| `TINA_HVX2K_DB_FILTER`                                    | Character string                               | The content of this variable is a filter allowing filtering of the databases appearing in the tree and "accessible" to the backup.The filter must be written using regular expressions. For example, to specify a list of databases, you must write the names of each database separated by vertical bar characters (\`                                                                                                                   | `). To display all databases whose names start with "mydbs", enter` "mydbs.\*"\`, etc. Regular expressions are available in the public domain.                                    |
| `TINA_HVX2K_USE_PWS_CACHE`                                | Yes, \[No]                                     | Specifies the use of a PowerShell cache to store the list of Exchange databases in order to speed up Tina startup.                                                                                                                                                                                                                                                                                                                        | Optional                                                                                                                                                                          |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://documentation.atempo.com/tina-4.9.5/tina-4.9.5-en/administration-guide/restore/exchange.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
