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

# Protect HyperStream Server

This section describes various methods to protect your HyperStream Server environment.

## Replication

You can replicate a HyperStream server to another HyperStream server. With this configuration, the data on the primary server is continuously replicated to a secondary server to secure your HyperStream repository. This ensures complete data recovery if the primary HyperStream server is lost.

## About Server Replication

Server replication is a process that enables you to secure both backed up data blocks and meta-data by replicating a HyperStream server to another one.

### Server Replication vs Hyperstream Replication

If you enable server replication, existing HyperStream-specific replication processes are disabled, even though their configuration is kept. Server replication configuration takes precedence over other available replication processes, and its settings take precedence over specific HyperStream replication settings:

* The target server is the one that is defined in the global replication.
* The connection is never encrypted.
* No proxy is used.

### Supported Configurations

HyperStream supports these replication configurations.

#### Simple and Hierarchical Replication

Replication enables you to copy the content of a HyperStream Server onto another HyperStream Server. Unlike bidirectional replication, simple and hierarchical replication are a one-way copy, i.e., the destination server content is not copied back onto the source (unless you specifically define a bidirectional replication).

These replication configurations are supported:

* Server A to Server B.
* Servers A, B, C, D, etc. to Server N.
* Server A to Server B to Server C to Server A.

{% hint style="info" %}
Replicating a HyperStream Server A to a HyperStream Server B is supported only if the two servers are installed on different physical servers (or virtual machines). The servers must have the same architecture, the same operating system, and the same HyperStream version.
{% endhint %}

{% hint style="warning" %}
The replication starts as soon as the replication destination is created. Ensure that the time to launch the replication is appropriate prior to defining the replication destination.
{% endhint %}

**To activate the replication of HyperStream Server A to HyperStream Server B with the Graphical User Interface**

1. Launch the ADE administration interface on Server A and log in as the admin user.
2. Select `Server > Configuration > Replication`.
3. Click **Add**.
4. Provide the name and port number of Server B.
5. Click **Validate the creation**.

**To activate the replication of HyperStream Server A to HyperStream Server B with the Command Line Interface**

{% hint style="info" %}
Use the command line only if you cannot access the ADE administration interface.
{% endhint %}

1. Launch the `ade_admin` command line interface on Server A as admin.
2. Run the `add_repli <server B>:<port_number>` command to add Server B as a replication destination for Server A.

**To pause/restart replication of the HyperStream Server**

1. Launch the `ade_admin` command line interface on the source HyperStream Server.
2. To pause the replication, run this command: `service pause replication`
3. To resume the replication, run this command: `service resume replication`

**To display information on bidirectional replication**

1. Launch the `ade_admin` command line interface on one of the servers.
2. Run the command `repli_info`.

This information is returned:

```
TIBERIUM:23233> repli_info
- ADE Replicator: TIBERIUM:32323 (ed8ccb38-820a-2e45-a579-018b22f1caab)
  CONNECTED (59 minutes ago)
- HSS Replicator: TIBERIUM:32323 (ed8ccb38-820a-2e45-a579-018b22f1caab)
  CONNECTED (59 minutes ago)
  Last synchro: 0 minute(s) ago
```

The `Last synchro` parameter, also known as replication lag, displays the date from which you are able to restore data from the replication target server if the replication source is off. If its value is 0, the synchronizing is complete.

3. Run the command `service list`.

This information is returned:

```
redhsswin3:23232> service list
ADE Replication is RUNNING (type= 6, host=redhsswin4:23232,uuid=e5030fd4-f0d8-374e-9b76-32a01bcc5dbd,remote_blocks=36998698,timeshifting=0,status=CONNECTED)
Compactor is READY (type= 7, wasted=10.67%)
Discover is RUNNING (type= 8, nb_server=29,upnp=0)
Garbage Collector is READY (type= 9, pending_task=0)
HSS is RUNNING (type=15, nb_stream=2405)
HSS Replication is RUNNING (type=13, host=redhsswin4:23232,uuid=e5030fd4-f0d8-374e-9b76-32a01bcc5dbd,nb_waiting_task=1,status=CONNECTED)
Monitor is RUNNING (type= 3, thr=15,cli=4,req=546,chk=8544,get=0,put=0,upd=0,inc=0,dec=0,del=0,net=28.31,bck=0.00,resto=0.00,rep_in=0.00,rep_out=23.98,cpu=0 %,ram=1849 MB,vm=1898 MB)
Web server is RUNNING (type= 5, sessions=0,port=8181)
```

The `Rep_in` parameter provides the incoming data rate in MB/s, while `Rep_out` provides the outgoing data rate in MB/s.

#### Bidirectional Replication

Bidirectional replication is useful if you have an infrastructure containing two geographically remote sites.

Example: A site in Paris and a site in London each have systems to perform backups. These can be done locally with both servers backing up each other.

Bidirectional replication ensures high availability and enables you to keep an up-to-date copy of the HyperStream Server repository at all time. To use the bidirectional replication, you must have two HyperStream Servers installed and configured. It is highly recommended to have two separate machines for better security. The installations must be identical, i.e.:

* Same operating system.
* Same installation path.
* Same name and password for the admin user.

Bidirectional replication must be activated after you installed your HyperStream Server. Once it is activated, the source HyperStream Server automatically updates the target server each time new data blocks are added or deleted.

It is possible that Tina is unable to connect to the source HyperStream Server. If this is the case, Tina will automatically switch to the destination server only when the initial backup was successful.

When the source server is back online, it is automatically updated with the new or removed data blocks. If a backup job is in progress when the HyperStream Server connection is lost, the job is canceled. Tina's default setting is to relaunch the job, which will be automatically redirected to the target server.

**To activate Bidirectional Replication, using the Command Line Interface**

1. Launch `ade_admin` on Server A while logged as the admin user.
2. Run the command `add_repli <Server_B:port_number>` to add server B as a replication destination of server A.
3. Launch `ade_admin` on Server B while logged as the admin user.
4. Run the command `add_repli <Server_A:port_number>` to add Server A as a replication destination of Server B.

**To display replication information**

See [To display information on bidirectional replication](#to-display-information-on-bidirectional-replication).

### Restore Replicated Data

When you request the restore of replicated data through the Restore & Archive Manager, Tina will automatically restore from the HyperStream Server with the lowest network latency, which could be either the replication source or target HyperStream Server.

{% hint style="info" %}
If you request a restore before the replication is finished and the fastest HyperStream Server is still being replicated, then Tina selects the next fastest HyperStream Server containing the entire stream to be restored.
{% endhint %}

### Configure the Server Replication

The Replications view shows the replication server associated with the current HyperStream Server and enables users to add or delete a replication destination. It can be viewed only by an administrator.

See [Hyperstream Replication](#hyperstream-replication) for details on the HyperStream Server replication.

#### Access the Replication View

**To display the Replications view**

1. Open the ADE administration interface.
2. Select `Server > Structure > Replications`.

Check the following overview of replication parameters (Table 11).

| Parameter     | Description                                                                                                                                                                                                                   |
| ------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Name          | Name given to the replication destination and by which it is identified on the network.                                                                                                                                       |
| Status        | Indicates if the replication destination is Enabled or Disabled.                                                                                                                                                              |
| Server        | Replication Server name with the port number used for replication.                                                                                                                                                            |
| Use           | Indicates: Global use for a global replication destination, which means all agents data are replicated. Or a number of agents for a selective replication destination, which means only specified agents data are replicated. |
| Tenant        | Indicates Shared for a global replication destination or the tenant name for a selective replication destination.                                                                                                             |
| Status column | Provides the status of the replication destination under the form of an icon (if the server is unreachable or awaiting replication acceptance, for instance).                                                                 |

*Table 11: Replication server parameters*

#### Add a Server Replication Destination

Adding a server replication destination consists of three steps:

1. Creating a replication destination on the source server.
2. Accepting the replication request on the destination server.
3. Associating at least a strategy with that destination for selective replication.

{% hint style="warning" %}
Replication starts as soon as the replication destination is confirmed. Thus, ensure that the time to launch the replication is appropriate prior to accepting the replication destination.
{% endhint %}

**Step 1: Create a server replication destination**

1. Open the ADE administration interface.
2. Go to `Server > Replications`.
3. Select a tenant at the top of the page:
   * All tenants to create a global replication destination.
   * A specific tenant to create a selective replication destination.
4. Click the button located at the top of the Replication destinations view.
5. Enter the following parameters:
   1. **Name**: Name of the new destination, as displayed in the ADE administration interface.
   2. Specify whether the destination is active or not.
   3. Enter the replication destination server. On a multi-server configuration, you must use another master server as replication destination.
   4. Enter a port number for the destination server. It is the same port as the Web administration port. The default value is `8181`.
6. (Optional) Enable the **Use a proxy** toggle if you want to reach the target server through a proxy.
   1. **Proxy server**: Host name of the proxy server you want to use.
   2. **Port**: Port of the proxy server you want to connect to.
   3. **Proxy user**: User of the proxy server if required by your proxy settings.
   4. **Password**: User password of the proxy server if required by your proxy settings.
7. Click **Create**.

A request to accept the replication is sent to the destination server. If the destination server is unreachable, a lightning icon will appear beside the name of the replication destination.

**Step 2: Accept the replication request on the destination server**

1. In the Administration interface of your destination server, go to the list of replication destinations.
2. Click the icon above the list to view the list of destination requests sent to that server.
3. Approve or decline the request(s) one by one, or check the option to accept all requests at once. If you do so, all current and future requests are automatically accepted until you uncheck the option.

{% hint style="info" %}

* In a multiserver environment, for a master-to-master replication, the requests are for the master and the nodes; you must accept all of them.
* In a standalone-to-standalone replication, there is only one request per server.
  {% endhint %}

**Step 3: Associate strategies with your replication destination**

Associating strategies is only necessary with a selective replication destination to indicate which agents to replicate. With a global replication destination, all agents are replicated.

1. In the list of replication destinations, click on your replication destination.
2. Select at least a strategy to associate with the replication destination.
3. Click **Save**.

#### Modify a Replication Destination

{% hint style="warning" %}
If you modify the information related to a replication destination, all the agents related to this strategy will be replicated from scratch to the new destination.
{% endhint %}

**To modify a destination**

1. From the ADE administration interface, select `Server > Replications`.
2. Click the replication destination you want to modify.
3. Modify the information to fit your requirements.
4. Click on **Save**.

#### Delete a Replication Destination

**To delete a replication destination**

1. Select the replication to delete in the list.
2. Click and confirm removal.

## Hyperstream Replication

Global replication is appropriate if you want to replicate data as a whole, and do not need a finer tuning of your replication process. HyperStream replication is a pool-related replication process giving you the opportunity to partially replicate your HyperStream data.

### Principle

The HyperStream replication is media pool-related to let you choose to partially replicate your HyperStream data. Use this configuration to:

* Dispatch replicated data across various servers.
* Ensure the availability of a limited number of media pools from the target server.

#### Topology

This diagram (Figure 10) shows a simple replication example:

<figure><img src="https://137371609-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HOI4mniMS7pDfClN83G%2Fuploads%2Fgit-blob-315c304d65e6e734f2149b7c3b37aa370876cd56%2Fhss-simple-replication-topology.png?alt=media" alt=""><figcaption><p><strong>Figure 10</strong>: Simple replication</p></figcaption></figure>

In this example, Media Pool 1 and Media Pool 2 are assigned to the first destination, Media Pool 3 is assigned to the second destination, and Media Pool 4 is not assigned to any of the destinations mentioned. If you choose to assign different destination servers, such as Server B and Server C, to each, data related to Media Pools 1 and 2 is replicated to Server B, data related to Media Pool 3 is replicated to Server C, and data related to Media Pool 4 is not replicated.

#### Replicated Items

For every media pool replicated, all the streams and the related backed up object blocks are replicated to the target server. Thus, the retention period is not server-specific. Stream deletion is also replicated.

{% hint style="info" %}
To make sure your data replication is over, check the status of the replication synchronization indicator.
{% endhint %}

### Hyperstream Replication Configuration

{% hint style="warning" %}
To activate HyperStream replication, you must delete your global replication destinations. As long as there is at least one global replication destination, HyperStream replication is disabled.
{% endhint %}

To use HyperStream replication, you must:

* Add a replication destination.
* Configure a media pool.

**Step 1: Add a destination**

1. Connect to the ADE administration interface with administration rights.
2. Select `HyperStream > Replication`.
3. Click **Add**. The New Replication Destination window is displayed.
4. Enter the following parameters:
   1. **Name**: Name of the new destination, as displayed in the ADE administration interface.
   2. **Status**: Selecting the Status checkbox enables or disables the replication destination.
   3. **Host Name**: Host name of the target server to which data is replicated.
   4. **Port**: Destination port on the target server. The default value is `23232`.
5. Select **Validate the creation**.
6. (Optional) To modify a destination:
   1. If you change information related to a replication destination, delete manually every former stream.
   2. Double-click on the replication destination you want to modify. The Destination Details window opens.
   3. Modify the parameters.

**Step 2: Configure a media pool**

1. Perform a backup if you do not have a valid HyperStream backup, and wait until it is completed.
2. Select `HyperStream > Replication`. A new pool has been created based on the name of the related Tina media pool. Streams are grouped together by Tina media pool. A special pool called `empty` is used to store every stream whose media pool is unknown.
3. Select the newly added media pool.
4. Click **Modify**.
5. Select a replication destination from the list. The replication starts as soon as you enable the media pool.

### Restore replicated data

If the origin server is unavailable, restores will automatically use the data replicated from the destination server.

## Duplication

In addition to mirroring and replication, you can also secure your data by performing duplication of your HyperStream Server backups using the Virtual Library System Application. See the Administration Section of the Tina Administration Documentation for details.

{% hint style="warning" %}
The duplication of VLS or physical tapes to a HyperStream Server is not supported. The duplication appears to be successful and no logs are generated, but restoring the duplicated data will fail.
{% endhint %}

{% hint style="info" %}
**Direct SAN or library access**: If the HyperStream Server is a Storage Node (i.e., it is connected to a SAN or to a tape library, and you want to duplicate data directly from the HyperStream Server to the SAN or tape library), you must set the tunable `dup_select_sn_for_hss` to the name of the storage node on the Tina Server. Otherwise, the duplication will go through the Tina Server via the LAN, and performances will be degraded.
{% endhint %}

## Back up and Restore the ADE Server with Snapshots

Snapshots can help you protect the ADE server before an upgrade, major configuration changes, or maintenance operations. Snapshots can be manually configured and triggered. They can be reverted if needed.

{% hint style="warning" %}
Snapshots are not designed to protect against hardware failures.
{% endhint %}

### Prerequisites

**Windows**

* All volumes to snapshot must be stored on NTFS file systems.
* If you want to use the snapshot revert feature, do not install any ADE components on the system disk.
* Administrators must be familiar with Windows snapshot procedures.

**Linux**

* All volumes must be stored on version `2.02.95` or higher of LVM2.
* All volumes used by ADE must be Thin Provisioned LVM volumes (thin volumes). See Create a Thin Volume on Linux.
* Administrators must be familiar with Linux snapshot procedures.

### Trigger Snapshots

Snapshots operations take place in the `ade_admin` Command Line Interface.

**To launch `ade_admin`**

1. On the machine hosting the Atempo Deduplication Engine, launch the `ade_admin` command line interface:
   * Windows: Go to `Start > Programs > Atempo Deduplication Engine > Administration`.
   * Linux: Launch the `./ade_admin` command.
2. Connect with the admin user and provide the password.

**`ade_admin` commands**

These are the `ade_admin` commands to use for snapshots:

* `snap_create` — Puts the ADE server in hot backup mode, creates a snapshot, then exits the hot backup mode. It returns the snapshot ID and all paths to protect. If you intend to perform a backup, then it is mandatory to back up all the provided paths.
* `snap_list` — Displays a list of all the snapshots created with the command `snap_create`.
* `snap_delete <ID>` — Deletes the snapshot specified with the ID.
* `snap_bck_list <ID>` — Lists the paths of all the ADE components necessary to back up this snapshot (home directory, block repositories, database, logs, etc.).

The following commands are for Linux only:

* `snap_mount <ID>` — Mounts snapshot `<ID>` on path `<ADE Install path>/snapshot/<ID>` in read-only mode.
* `snap_unmount <ID>` — Unmounts snapshot `<ID>`.

**`ade_admin` commands on a Windows system example**

```
WIN-1NAI2760G00:23232> snap_create
SNAPID={B4C61C61-75FC-4067-8A1C-EEB89462B46F}
HOME=C:\DEV\dedup
SNAP_HOME=\\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy77\DEV\dedup
DB_CORE=C:\DEV\dedup\rds\catalog\dedup_block_dat\
SNAP_DB_CORE=\\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy77\DEV\dedup\rds\catalog\dedup_block_dat
DB_LOG=C:\DEV\dedup\syslog\
SNAP_DB_LOG=\\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy77\DEV\dedup\syslog
REPOSITORY=C:\DEV\dedup\server\dedup_block\block
SNAP_REPOSITORY=\\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy77\DEV\dedup\server\dedup_block\block
REPOSITORY=C:\TEST\JUNCTION
SNAP_REPOSITORY=\\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy78\AAA\BBB
REPOSITORY=C:\link\rep_link
SNAP_REPOSITORY=\\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy78\target_of_link\rep_link
REPOSITORY=C:\mount\rep_mount
SNAP_REPOSITORY=\\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy79\rep_mount

WIN-1NAI2760G00:23232> snap_list
{F407669E-6592-42BC-B82F-1EAC864B51F5}
{284B9A54-6F89-425B-8DB1-E6408DF9A223}
{B4C61C61-75FC-4067-8A1C-EEB89462B46F}

WIN-1NAI2760G00:23232> snap_delete {B4C61C61-75FC-4067-8A1C-EEB89462B46F}
```

**`ade_admin` commands on a Linux system example**

```
hyperstream:23238> snap_create
SNAPID=SNAP_a9f36767_65ec_45ca_bf80_e9502e486972_1425649105
HOME=/mnt/lv1/ADE33/snapshot/SNAP_a9f36767_65ec_45ca_bf80_e9502e486972_1425649105_00/ADE33
DB_CORE=/mnt/lv1/ADE33/snapshot/SNAP_a9f36767_65ec_45ca_bf80_e9502e486972_1425649105_00/ADE33/rds/catalog/dedup_block_dat
DB_LOG=/mnt/lv1/ADE33/snapshot/SNAP_a9f36767_65ec_45ca_bf80_e9502e486972_1425649105_00/ADE33/syslog
REPOSITORY=/mnt/lv1/ADE33/snapshot/SNAP_a9f36767_65ec_45ca_bf80_e9502e486972_1425649105_00/ADE33/server/dedup_block/block
REPOSITORY=/mnt/lv1/ADE33/snapshot/SNAP_a9f36767_65ec_45ca_bf80_e9502e486972_1425649105_01/BLOCKS
STREAM=/mnt/lv1/ADE33/snapshot/SNAP_a9f36767_65ec_45ca_bf80_e9502e486972_1425649105_01/STREAMS

hyperstream:23238> snap_list
SNAP_a9f36767_65ec_45ca_bf80_e9502e486972_1425563072 Thu Mar 05 14:44:32 2015
SNAP_a9f36767_65ec_45ca_bf80_e9502e486972_1425563140 Thu Mar 05 14:45:40 2015
SNAP_a9f36767_65ec_45ca_bf80_e9502e486972_1425649105 Fri Mar 06 14:38:25 2015

hyperstream:23238> snap_umount SNAP_a9f36767_65ec_45ca_bf80_e9502e486972_1425649105

hyperstream:23238> snap_delete SNAP_a9f36767_65ec_45ca_bf80_e9502e486972_1425649105
```

### Restore Snapshots

These procedures apply to both automatic snapshot and manual snapshot restore.

Since all components (home directory, block repositories, database, logs, etc.) are linked together, it is mandatory to restore all components together.

Two solutions are available to restore a snapshot:

* Mount or expose the snapshot and copy files from the snapshot to the current volume.
* Revert/restore the whole volume (not for system volumes).

{% hint style="warning" %}
**Before a Restore Operation**: in the `ade_admin` command line interface, run the `snap_list` command to obtain the list of available snapshots. You must stop the ADE and HyperStream Snapshot services before you start copying any file.
{% endhint %}

{% hint style="warning" %}
**After a Restore Operation**: ensure that you restart the ADE and the HyperStream Snapshot services after any restore operation.
{% endhint %}


---

# 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/deduplication/protect.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.
