> 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/backup/exchange.md). Agents can also search and read this documentation through its [MCP server](https://documentation.atempo.com/~gitbook/mcp).

# Exchange

## Overview of Tina HyperVision Agent for Exchange

This topic contains the following information:

* [<mark style="color:blue;">Key concepts</mark>](#key-concepts)
* [<mark style="color:blue;">Database Availability Groups (DAG)</mark>](#database-availability-groups-dag)
* [<mark style="color:blue;">Backing up and restoring with Tina HyperVision Agent for Exchange</mark>](#backing-up-and-restoring-with-tina-hypervision-agent-for-exchange)

> **Important**: Although the new web admin console is used to perform most operations in Tina, references to the old web administration interface may still appear in this guide. These sections will be gradually updated in future versions of Tina.

### Key concepts

For more information on key concepts, such as vault backup, VSS mode, Exchange Server architecture, the recovery database, and so on, see Atempo-Documentation Tina for Exchange Server 2010 and 2013.

### Database Availability Groups (DAG)

The Database Availability Group (DAG) is an Exchange Server feature that replaces all the clustering and high availability options of previous versions of Exchange Server 2010.

A Database Availability Group (or DAG) is made up of up to 16 mailbox servers that provide automatic database-level recovery in the event of a database, server, or network failure. Database Availability Groups use continuous replication and a subset of Windows failover clustering technologies to ensure continuous mailbox availability.

The mailbox servers in a Database Availability Group (DAG) monitor each other to detect failures. When a mailbox server is added to a Database Availability Group, it works with the other servers in the group to provide automatic database-level recovery in the event of a failure.

Continuous replication uses one active copy and several passive copies for each mailbox server in the DAG:

* The active copy is directly affected by user actions, such as sending emails.
* The passive copies receive copies of the transactions performed on the active copy via log shipping.

Failover occurs from the active copy of a database to another mailbox server either when the server hosting the active copy fails or at the request of the Exchange administrator.

This diagram shows the structure of a Database Availability Group (DAG):

<figure><img src="https://137371609-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HOI4mniMS7pDfClN83G%2Fuploads%2F48NC4NYyjSr1jXFDorI8%2Fimage.png?alt=media&amp;token=15dd9bb7-5da6-4a1a-bc0c-2349921e6e5e" alt=""><figcaption></figcaption></figure>

For more information on DAGs, see [<mark style="color:blue;">http://technet.microsoft.com/frfr/library/dd298065.aspx</mark>](http://technet.microsoft.com/frfr/library/dd298065.aspx)<mark style="color:blue;">.</mark>

### Backing up and restoring with Tina HyperVision Agent for Exchange

Tina HyperVision Agent for Exchange lets you configure backups and restore data to and from Database Availability Groups (DAG).

#### Backing up

Tina HyperVision Agent for Exchange offers a simple method for backing up Exchange databases in a DAG environment. The administrator uses a single application folder and configures the automatic backup of Exchange databases on only one node of the DAG. The administrator does not need to know which node the databases are active on. Tina HyperVision Agent for Exchange automatically delegates the backup to the correct node. By default, Tina HyperVision Agent for Exchange delegates the backup of a database to the server hosting the active copy of the database. However, the administrator can change this default behavior by choosing another delegation strategy with the <kbd>TINA\_HVX2K\_DELEGATION\_STRATEGY</kbd> environment variable.

For more information on this environment variable, see [Delegation strategy](#delegation-strategy) and\
[Tina HyperVision Agent for Exchange Environment Variables](https://documentation.atempo.com/tina-4.9.5/tina-4.9.5-en/administration-guide/restore/exchange.md#tina-hypervision-agent-for-exchange-environment-variables).

> **Note**: Tina HyperVision Agent for Exchange does not support brick-level restore (individual emails). If you need this level of granularity, you must use the Tina for Exchange Server agent.

#### Restoring

Tina HyperVision Agent for Exchange offers a simple method for restoring Exchange databases in a DAG environment. The administrator does not need to remember on which machine the backup took place. All you need to do is choose a synchronization date and launch the restore.\
By default, Tina HyperVision Agent for Exchange restores the database on the server\
hosting the active copy of that database. However, the administrator can change this\
default behavior when they need to specify the restore settings before launching the restore.\
Tina HyperVision Agent for Exchange also lets you restore mailboxes from a database backup directly from the Restore and Archive interface.

## Installing and configuring Tina HyperVision Agent for Exchange

This topic contains the following information:

* [<mark style="color:blue;">Prerequisites</mark>](#prerequisites)
* [<mark style="color:blue;">Installing Tina HyperVision Agent for Exchange</mark>](#installing-tina-hypervision-agent-for-exchange)
* [<mark style="color:blue;">Configuring Tina HyperVision Agent for Exchange</mark>](#configuring-tina-hypervision-agent-for-exchange)

### Prerequisites

This topic describes the prerequisites for installing Tina HyperVision Agent for\
Exchange.

#### Exchange Server version

Please refer to the [Tina Compatibility Guide](https://documentation.atempo.com/tina-4.9.5/tina-4.9.5-en/version-information/compatibility-guide.md) for information on supported versions.\
Exchange 2013. If you use the mailbox restore feature to restore mailboxes from a recovery database, the mailbox must not be hosted in a mailbox database created with a version of Exchange earlier than Cumulative Update 8 (CU8) for Exchange Server 2013.

#### Tina version

For the most up-to-date information on supported versions of Tina, see the [Tina Compatibility Guide (in English).](https://documentation.atempo.com/tina-4.9.5/tina-4.9.5-en/version-information/compatibility-guide.md)

#### Communication ports

The default TCP and UDP port numbers used for communication between the Tina server and its agents are set to 2525 and 2526 respectively.\
If the client access servers and mailbox servers (Client Access Server and Mailbox Server roles) are located on the same server, the SMTP service of the receive connector for the Transport service (SMTP Receive connection for the Transport service) will listen on port 2525 instead of 25. This is because two services (FET and Transport) cannot listen on the same port.

To avoid this conflict between Tina and Microsoft Exchange, choose one of these solutions

* Change the TCP/UDP port numbers in Tina. See [Installing Tina Server](https://documentation.atempo.com/tina-4.9.5/tina-4.9.5-en/administration-guide/deployment/installing-tina-server.md).\
  **Or**
* Configure the mailbox server role on a different server.

### Installing Tina HyperVision Agent for Exchange

This image shows the deployment of the Tina server and agents for backing up\
Exchange mailbox servers including a Database\
Availability Group (DAG) environment:

<figure><img src="https://137371609-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HOI4mniMS7pDfClN83G%2Fuploads%2Fz4Cz20qCaSHxOWUh0jzT%2Fimage.png?alt=media&amp;token=dab963ef-101c-4961-8455-326c177d3793" alt=""><figcaption></figcaption></figure>

To deploy Tina, you must install:

* A Tina server on a dedicated machine.
* A Tina agent on every Exchange server to be backed up.

For more information, see [Installing Tina Server](https://documentation.atempo.com/tina-4.9.5/tina-4.9.5-en/administration-guide/deployment/installing-tina-server.md) and [Installing the Tina Agent](https://documentation.atempo.com/tina-4.9.5/tina-4.9.5-en/administration-guide/deployment/installing-tina-agent.md).

### Configuring Tina HyperVision Agent for Exchange

This topic contains the following information:

* [<mark style="color:blue;">Declaring one of the Tina agents as a system</mark>](#declaring-one-of-the-tina-agents-as-a-system)
* [<mark style="color:blue;">Creating and configuring the HV Agent for Exchange application</mark>](#creating-and-configuring-the-hv-agent-for-exchange-application)
* [<mark style="color:blue;">Connecting to the Restore and Archive interface</mark>](#connecting-to-the-restore-and-archive-interface)

#### Declaring one of the Tina agents as a system

Once the Tina agents are installed on all Exchange servers, you must create and declare one of these Tina agents as a system in the catalog in your Tina server's Web Administration.

#### Creating and configuring the HV Agent for Exchange application

You must then configure the HV Agent for Exchange application on the system you\
just declared. This application is dedicated to vault backups.

> **Note**: The HV Agent for Exchange application must be configured on an Exchange server.

Tina HyperVision Agent for Exchange acts as a master agent that distributes\
database backups to the other Tina agents installed on all\
Exchange servers.

See [Delegation Strategy](#delegation-strategy).

**Creating an HV Agent for Exchange application**

1. Log in to Web Administration and open your catalog in the Tina explorer.
2. Select Platforms Applications. The Applications panel opens.
3. Click New Application to launch the Application Creation Wizard.
4. Set the parameters for the HV Agent for Exchange application. This table describes all the parameters to set when creating an HV Agent for Exchange application.

<table data-header-hidden><thead><tr><th width="225.09344482421875"></th><th></th></tr></thead><tbody><tr><td><strong>Parameter</strong></td><td><strong>Description</strong></td></tr><tr><td><strong>System selection</strong></td><td>Select the system on which the HV Agent for Exchange application is installed.</td></tr><tr><td><strong>General information</strong></td><td><em>(section)</em></td></tr><tr><td><strong>Application name</strong></td><td>Enter the name of the new application. The application name corresponds to the name given to the application's backup folder. This name can be changed later without losing any backups. Each application must have a unique name.</td></tr><tr><td><strong>Application type</strong></td><td>Select the HV Agent for Exchange application. Tina automatically detects the Exchange server version.</td></tr><tr><td><strong>Comment</strong></td><td>Optional. Enter a comment describing the application.</td></tr><tr><td><strong>User information</strong></td><td><em>(section)</em></td></tr><tr><td><strong>User name</strong></td><td>Enter the user name in the format <em>domain_name\user_name</em>. This user must belong to the Organization Management group of Exchange Server or have Exchange administrator permissions (previous versions). Be sure to specify the domain, otherwise the application will not be able to see the databases.</td></tr><tr><td><strong>Password and Confirmation</strong></td><td>Enter the user's password and confirm it. If a connection error occurs (incorrect user name or password), Tina cannot connect to the Exchange database and no backup or restore is possible.</td></tr><tr><td><strong>Environment variables</strong></td><td><em>(section)</em></td></tr><tr><td><strong>Exchange Server dynamic library path</strong></td><td>Enter the relative or absolute path to the software library of the Exchange Server module on the client machine hosting the Exchange server. The default value is<kbd><em>libtina_ngax2k.dll</em>.</kbd></td></tr><tr><td><strong>Optional environment variables</strong></td><td><p>To add an optional variable:</p><ol><li>Click <strong>Add</strong> and select Add optional environment variable.</li><li>Select the variable in the Name tab (definition visible in Details).</li><li>Click <strong>Apply</strong> and <strong>Close</strong>.</li><li>Enter the value in the Value column (e.g. <em>Optional (3/13)</em>).</li></ol><blockquote><p><strong>Tip</strong>: hover over the name to display information. To edit: click the value then enter the new one.</p><p>To remove: select the variable then click Remove.</p></blockquote><p>See also: <a href="https://documentation.atempo.com/tina-4.9.5/tina-4.9.5-en/administration-guide/restore/exchange.md#tina-hypervision-agent-for-exchange-environment-variables">Tina HyperVision Agent for Exchange Environment Variables.</a> Variables can also be set via the Restore and Archive interface.</p></td></tr><tr><td><strong>User-defined environment variables</strong></td><td><p>A user-defined variable does not appear in the existing list.</p><p>To add one:</p><p>1. Click Add → user-defined variable (empty field added).</p><p>2. Enter the name in the Name column.</p><p>3. Enter the value in the Value column.</p></td></tr></tbody></table>

5. Carefully review the **Application Settings Summary** and click **Finish** to create the application.
6. If the application was created successfully, click Close to exit the Application Creation Wizard. The created application appears in the list of applications. Or If the application creation failed, read the error messages to resolve the issue.
7. Select the application you just created in the list and click the Put Application into Service button to put the application into service.

#### Connecting to the Restore and Archive interface

Once the HV Agent for Exchange application has been created, please test the connection as well as the application settings by launching the Restore and Archive interface.

**Testing the Tina/HV Agent for Exchange Application connection**

1. Open the Restore and Archive interface as an administrator for the HV Agent for Exchange application you just created. The login window appears.
2. Enter the Platform User, Domain, and Password required to connect to the HV Agent for Exchange application. The Restore and Archive interface tree appears. It contains the root directory.
3. Double-click the root directory. Tina attempts to connect to the HV Agent for Exchange application. If the connection is successful, the Exchange server structure appears. If it fails, the root directory remains open but an icon and an error message appear. Check the Tina events (Current Activity Events node in Web Administration) and go back through this topic from the beginning to help correct the connection settings. If the problem persists, contact Technical Support.
4. Double-click the Databases directory to view all the mailbox databases managed by your Exchange server. Tina checks the role of its access user. If this user has sufficient access rights, the directories representing the databases appear. Otherwise, an icon and an error message appear.
5. Browse the meta-directories of the Exchange tree to check the configuration.

   > **Note**: If Tina detects a problem with the configuration, one or more messages will appear in the Restore and Archive interface tree.

### Tina HyperVision Agent for Exchange backup

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;">Delegation strategy</mark>](#delegation-strategy)
* [<mark style="color:blue;">Automatic backups</mark>](#automatic-backups)
* [<mark style="color:blue;">Manual backups</mark>](#manual-backups)

For security reasons, and in the event of the loss of a server,\
backing up the databases is not sufficient. Make sure that the\
Windows system state is also backed up, as well as the directory of\
Exchange libraries created during the Exchange Server installation. You can\
use Tina System Recovery Agent to perform these backups.

Backups of Hyper-V environments hosting Exchange\
servers cause the logs to be purged. If you subsequently launch an\
incremental backup of all Exchange databases, a\
full backup will be performed instead.

#### 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 backups is as follows:

* User's mailboxes
* Public Folder mailboxes

#### Permissions

To perform backups, the Tina user must belong to the Organization Management role group.\
For more information on Organization Management, see <http://technet.microsoft.com/frfr/library/dd335087.aspx>.

#### Prerequisites

The prerequisites below are required to perform hot backups of Exchange databases:

* The main service (System Monitoring) enabling the databases must be\
  started.
* The service corresponding to the Managed Store must be started.
* The Exchange databases must be mounted to be backed up.
* The Exchange databases must not be in "Circular Logging" mode if you\
  want to perform incremental backups.

**"Circular Logging" mode**

Databases can be in "Circular Logging" mode or not. This mode allows\
old logs to be reused after their content has been written to the Exchange database.\
If "Circular Logging" mode is selected, no incremental backup can be\
performed. Only FULL backups are allowed. Indeed, if old logs are reused, it is\
then impossible to certify that all logs are backed up by Tina.\
To perform incremental backups, you must therefore use "Non-Circular\
Logging" mode.

* Non-circular mode is enabled by default.
* If you performed a backup in circular mode before switching to\
  non-circular mode, you must perform another full backup. Atempo\
  recommends recycling the media on which this backup is stored before\
  performing a full backup in non-circular mode.

For more information on media operations, see the Tina\
Administration Documentation.

**Switching a database to non-circular mode**

1. In your browser, enter the URL of the Exchange Administration Center: https\:///ecp
2. In the features pane, click **Servers** and select your server from the list.
3. Click the **Databases** tab and select a mailbox database.
4. Click the **Edit** button.
5. On the **Maintenance** tab, uncheck the **Enable circular logging** 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%2FSv5TFGj4azQNCzOdseEd%2Fimage.png?alt=media&amp;token=7d7fdcff-0016-4bf9-994f-d61ee645fd9d" alt=""><figcaption></figcaption></figure>
6. Click **Save** to confirm.
7. Repeat steps 3 to 6 for each database.

#### Delegation strategy

This image shows an Exchange environment made up of three mailbox\
servers and three databases. The DB3 database does not belong to the Database Availability Group (DAG).

<figure><img src="https://137371609-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HOI4mniMS7pDfClN83G%2Fuploads%2F3o55uUnOiJtOEI4ZD8zI%2Fimage.png?alt=media&amp;token=709f5689-21bf-46ec-b1d7-8f2415231e2e" alt=""><figcaption></figcaption></figure>

Tina HyperVision Agent for Exchange is configured on one of the Exchange servers and acts as a master agent that distributes database backups to the other Tina agents installed on all Exchange servers. By default, Tina HyperVision Agent for Exchange delegates the backup of a database to the Exchange server where the active copy of the database is hosted. However, the administrator can change this default behavior by choosing another delegation strategy with the TINA\_HVX2K\_DELEGATION\_STRATEGY environment variable.

See [Tina HyperVision Agent for Exchange Environment Variables.](https://documentation.atempo.com/tina-4.9.5/tina-4.9.5-en/administration-guide/restore/exchange.md#tina-hypervision-agent-for-exchange-environment-variables)

If you choose to delegate the database backup to the Exchange server where the passive copy of the database is hosted (<kbd>TINA\_HVX2K\_DELEGATION\_STRATEGY=passive</kbd>), Tina HyperVision Agent for Exchange will choose the Exchange server hosting the passive copy of the database according to the following priority criteria:

1. The passive copy is not lagged.
2. The passive copy is hosted by a server that does not host any active copy of another database.
3. The passive copy is hosted by a server that hosts a lagged copy of another database. You can also specify a list of Exchange servers to use for backing up passive copies of the database with the <kbd>TINA\_HVX2K\_PREFERRED\_SERVERS\_FOR\_PASSIVE\_COPIES\_BACKUPS</kbd> environment variable.

See [Tina HyperVision Agent for Exchange Environment Variables.](https://documentation.atempo.com/tina-4.9.5/tina-4.9.5-en/administration-guide/restore/exchange.md#tina-hypervision-agent-for-exchange-environment-variables)

**Example 1. Backing up the DB3 database**

The DB3 database does not belong to the DAG and is therefore not replicated. Tina HyperVision Agent for Exchange will delegate the backup of the DB3 database to mailbox server 1.

**Example 2. Backing up the DB1 database**

The DB1 database belongs to the DAG and is replicated across two mailbox\
servers. Tina HyperVision Agent for Exchange will delegate the backup of the DB1 database according to the delegation strategy you have chosen:

* If you have not set a delegation strategy, or if you have set the <kbd>TINA\_HVX2K\_DELEGATION\_STRATEGY</kbd> environment variable to active, Tina HyperVision Agent for Exchange will choose the node hosting the active copy of the database, i.e., mailbox server 1.
* If you have set the TINA\_HVX2K\_DELEGATION\_STRATEGY environment variable to passive, Tina HyperVision Agent for Exchange will choose one of the nodes hosting the passive copy of the database, i.e., mailbox server 2 or 3, depending on the rules described above for selecting passive copies by Tina HyperVision Agent for Exchange and whether or not you have specified the Exchange servers to use for backing up passive copies of the database in the <kbd>TINA\_HVX2K\_PREFERRED\_SERVERS\_FOR\_PASSIVE\_COPIES\_BACKUPS</kbd> environment variable.

#### Automatic backups

Configuring Tina HyperVision Agent for Exchange for automatic backups includes:

* Creating and putting into service the system hosting Tina HyperVision Agent for\
  Exchange.
* Creating and putting into service an HV Agent for Exchange application. See [Creating and configuring the HV Agent for Exchange application](#creating-and-configuring-the-hv-agent-for-exchange-application).
* Creating a backup selection.
* Creating or editing a media set.
* Defining a backup schedule. See [Backup](https://documentation.atempo.com/tina-4.9.5/tina-4.9.5-en/administration-guide/backup.md).

> **Note**: The configuration steps above are common to all Tina applications and are described in detail in the Tina Administration Documentation. Only aspects specific to Tina HyperVision Agent for Exchange are covered in this manual.

**Configuring automatic backups**

Configuring the HV Agent for Exchange application for automatic backups

1. In the main toolbar of Web Administration, click the Wizard button and select Backup Wizard.
2. Select the HV Agent for Exchange application for which you want to configure automatic backups.
3. Follow the on-screen instructions. They will guide you through the configuration steps. For more information on using the backup wizard and configuring backups, see the Tina Administration Documentation.

**Defining a backup schedule**

Since there can only be a SINGLE active copy of the database and several passive copies in your DAG, ONLY a backup of the active copy will be launched. This backup will be performed regardless of which node hosts the active copy of the database.

**Purging log files**

Every time a full backup is performed, Exchange Server purges all log files that are no longer needed.

> **Note**: If the backup of a database fails, the log files will not be purged for the entire set of databases. You must check the reason for this failure and rerun a backup.

**Parallel backups**

Job parallelization lets you optimize backup duration by launching\
several backups simultaneously.

**Example**.

If you define a backup selection at the root of the HV Agent for\
Exchange application (i.e., you want to back up your entire server) and if you set\
the parallelism index to 4, you could then have four backup jobs running in parallel, one per database.

> **Note**: Due to Microsoft constraints, you cannot specify a\
> parallelism index greater than 8.

For more information on parallel backups, see the Tina Administration Documentation.

#### Manual backups

In addition to scheduling automatic backups, you can also launch a backup manually at any time.

Manually triggering a backup

1. In Web Administration, select Platforms **Applications**.
2. In the **Applications** panel, select the application for which you want to launch a manual backup and click Launch a Backup.
3. Choose the backup type: **Full or Incremental.**
4. Click **Yes** to confirm the operation. The backup starts if no other session of the selected strategy is currently being backed up and if the application is in service.


---

# 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/backup/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.
