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

# VMware

## Backing up with Tina for VMware

This chapter explains how to configure and operate VMware backups.

### Backup Prerequisites

#### Proxy-side permissions (agent)

If you define a **Backup User**, this account must be able to:

* write to `Adm`, `Conf`, `Tmp` under `TINA_HOME`
* start backup processes
  * **Windows**: be a Backup Operator (or equivalent) plus have administrator rights
  * **Linux**: belong to the `disk group` for SAN mode (or have sufficient rights)

#### *Creating the Backup User on the proxy*

*If the Backup User is not a network (domain/LDAP) account, create it as a local account on the proxy machine, then grant it the rights listed above.*

***On Windows** (administrator command prompt):*

```
net user <username> <password> /add
net localgroup "Backup Operators" <username> /add
net localgroup Administrators <username> /add
```

*Or use **Computer Management > Local Users and Groups**.*

***On Linux** (as root):*

```
useradd -m <username>
passwd <username>
usermod -aG disk <username>    # required for SAN transport mode
```

*Make sure the account can write to the `Adm`, `Conf` and `Tmp` directories under `TINA_HOME`.*

*Once the account exists, enter it as the Backup User when you configure the HV Agent for VMware application (see* [*Configuring automatic backups*](#configuring-automatic-backups)*).*

> ***Note:** On Windows, if you use pre-freeze/post-thaw scripts, the Backup User must also exist inside each VM (see Backup User and script execution).*

#### vCenter permissions

The vCenter account used by the application must have permissions to:

* Snapshot / restore / delete a snapshot
* Read VM files and virtual disks
* Guest operations (for certain features)

The simplest approach is to use **vCenter CBT Manager** to create or update a role.

#### Network connectivity and firewall ports

The following ports are required for both backup and restore operations between the Tina proxy and the VMware infrastructure:

<table><thead><tr><th width="119.3333740234375">From</th><th width="142">To</th><th width="116.6666259765625">Port</th><th>Purpose</th></tr></thead><tbody><tr><td>Proxy</td><td>vCenter / ESXi</td><td>TCP 443</td><td>HTTPS (API, session management)</td></tr><tr><td>Proxy</td><td>ESXi</td><td>TCP 902</td><td>Data transfer in LAN (NBD) and LAN SSL (NBDSSL) modes</td></tr></tbody></table>

> **TCP 903** is no longer required.

#### Prerequisites for incremental (CBT)

CBT (**Changed Block Tracking**) is a VMware feature that tracks what has changed since the last backup. Tina uses it to back up only the deltas, instead of re-reading the entire VM.

**Example**: a 500 GB VM with only 5 GB modified can be much faster in incremental.

This reduces the backup duration and limits the load on the infrastructure. It reduces the impact on the network, storage, and vCenter.

* **Virtual hardware version ≥ 7**
* Each VMDK must have a **UUID**
* Plan for a small amount of additional VMware disk usage (CBT metadata)

#### Indexing prerequisites (Automatic File Restore)

* **Windows**: each partition to be indexed must have a **drive letter** (for example `C :`, `D :`)
* **Linux**: you must **identify the mount points** using "Tag Disks" (CBT Manager tool)

#### HVDS (HyperVision Deduplication Storage) prerequisites

If you are targeting HVDS, make sure the repository is installed and configured on the ADE/HVDS side.

### Backup limitations

{% hint style="info" %}
Before backing up data, make sure to use only letters (a-z), numbers (0-9) and supported characters (', \_, or -) in display names of any VMware vCenter Server or VMware ESXi objects (virtual machines, ESX, datastores, folders, files etc.). Display names should not contain special characters, such as %, &, \*, $, #, @, !, , /, :, ?, ", <, >, |, ;. This is to avoid issues when querying for the name in the vSphere Web Client interface.
{% endhint %}

Be aware of these limitations before backing up data with Tina HyperVision Agent for VMware:

#### Backup Indexing

* The Browse functionality does not allow the creation of backup selections with the Indexing feature. Backup selections must be entered manually to select individual directories for indexing.

  See [Defining Backup Selections](https://docs.atempo.com/tina/4.9.4/en/tina-hypervision-agent-for-vmware/Content/Topics/Defining_Backup_Selections.htm) and the Tina Administration Documentation for details on backup selections.
* **Linux**. Backup Indexing does not support LVM2 (Logical Volume Manager, version 2) partitions that have more than one segment and more than one stripe on this segment. If this is the case, the LVM2 partition is ignored. This limitation only applies to backup indexing, not to restore. You can use the file mode restore which is compatible with LVM2.

  See [Restore Prerequisites](https://docs.atempo.com/tina/4.9.4/en/tina-hypervision-agent-for-vmware/Content/Topics/Restore_Prerequisites.htm#hvvmw_installation_1426268279_1103599) for details on Linux file restores.

  See [Restore Modes](https://docs.atempo.com/tina/4.9.4/en/tina-hypervision-agent-for-vmware/Content/Topics/Restore_Modes.htm#TwoStepFileRestoreProcess) for details on the file mode restore process.
* **Windows**. Backup Indexing only supports basic disks. Dynamic disks are ignored when indexing backups.

#### HyperVision Deduplication Storage

These limitations apply when copying data backed up with the HyperVision Deduplication Storage to tape:

* You can define only one source deduplication storage strategy. Multiple source deduplication storage strategies are not allowed. For instance, you can have a source deduplication storage strategy A with a destination standard strategy D or a source deduplication storage strategy B with a destination standard strategy D. But you cannot have two source deduplication storage strategies A and B with a destination standard strategy D.
* Only the <kbd>sidf</kbd> write format is available for tape.
* You cannot perform incremental backups with the destination standard strategy.

#### Duplication

* Duplicating a virtual machine automatically results in duplicating its indexes. However, this does not apply to cartridge duplication which does not guarantee the consistency of duplicated data for Tina HyperVision Agent for VMware. It is recommended to use job duplication if you want to duplicate data of Tina HyperVision Agent for VMware.
* Duplicating HyperVision Deduplication Storage jobs is not supported.

### Configuring automatic backups

The workflow is always the same. Only the set/strategy objects change depending on the target.

{% stepper %}
{% step %}

#### Declare and enable the proxy host

The proxy hosts the Tina agent as well as the **HV Agent for VMware** application.
{% endstep %}

{% step %}

#### Create and enable the HV Agent for VMware application

You configure:

* The vCenter server and credentials
* The environment variables (Java port, VDDK, etc.)
  {% endstep %}

{% step %}

#### Create one or more Backup Selections

Depending on your needs:

* The entire datacenter (selection `/`)
* Or a targeted scope (cluster, resource pool, VM)
* And optionally `.../File` for indexing
  {% endstep %}

{% step %}

#### Define the destination and the schedule

* **Tape/Disk**: media set + standard strategy (schedule)
* **HVDS**: dedup set + dedup strategy (schedule)
  {% endstep %}
  {% endstepper %}

You can do this manually. You can also use the **Backup Wizard** (recommended).

#### Launching a manual backup

From the admin console:

1. Select the HV Agent for VMware application
2. Run **Launch Backup**

### Defining Backup Selections (what to back up)

#### Backing up the entire datacenter

By default, a selection exists at the **root** (`/`). It backs up everything the application can see.

#### Backing up a specific scope

You can target:

* An ESX host or a cluster
* A resource pool
* A VM

You can enter paths using **POSIX syntax**.

{% hint style="info" %}
If you enter a path manually, make it match the actual meta-tree structure. Otherwise, the selection may be valid but match nothing.
{% endhint %}

#### Indexing a VM for Automatic File Restore

Add `File` after the VM name:

* Index the entire VM: `.../vm_name/File`
* Index a subfolder: `.../vm_name/File/D/Data` (Windows example)

### Backups to HVDS (deduplication)

With HVDS you use:

* A **deduplication set**
* A **deduplicated storage strategy**

#### Creating the deduplication set (HVDS)

1. Create a new set
2. Define the retention
3. Link it to the HVDS storage

#### Creating the dedup strategy (schedule)

You link:

* The platform (the VMware application)
* The set for **Full** and **Incremental**
* A schedule (or none, for manual runs)

### Incremental with Changed Block Tracking (CBT)

An **incremental** backup only copies what has changed since the last backup. Most of the time, this means "since the last **full**".

It is generally faster and uses less space than the full. For restore, Tina may need the base full plus the associated incrementals.

CBT lets Tina read and transfer only the blocks modified between two snapshots.

#### How it works (summary)

* Each VMware snapshot has an identifier (CBTID)
* VMware compares CBTID\_N and CBTID\_N+1
* Tina only reads the list of modified blocks

If CBT has been enabled or disabled since the last backup, Tina falls back to a **full**. Sometimes this applies to a single VMDK.

#### Disabling CBT

1. Set `TINA_VCB_AUTO_CBT_ACTIVATION` to `no`
2. Disable CBT using:
   * **vCenter CBT Manager** (GUI, recommended for many VMs)
   * or `tina_cbtconfig.jar` (per VM)
3. Run a **full** before resuming incrementals

<details>

<summary><strong>Commands (tina_cbtconfig.jar)</strong></summary>

Windows:

```
"%TINA_HOME%\3rdParty\java\bin\java" -jar "%TINA_HOME%\Classes\tina_cbtconfig.jar" -setcbt 0 vmname
```

Linux:

```
$TINA_HOME/3rdParty/java/bin/java -jar $TINA_HOME/Classes/tina_cbtconfig.jar -setcbt 0 vmname
```

</details>

### Configuring indexing (Automatic File Restore)

Indexing populates the `File` meta-directory. You can then restore files directly from the interface, without manual mounting.

#### Linux prerequisites (key points)

Before indexing a Linux VM:

1. Install **VMware Tools** (recommended: latest version)
2. Uninstall `open-vm-tools` (otherwise Automatic File Restore will not work)
3. Use **Tag Disks** (CBT Manager) to generate mount identification files

<details>

<summary><strong>Fallback if "Tag Disks" is not possible</strong></summary>

* Windows: create a folder `atn_disk_name_<drive_letter>` at the root of each volume. Example: on `D :` create `D:\atn_disk_name_D`.
* Linux: for each partition, create a `.atn_disk_name.txt` file at the mount point. The file contains the mount path (for example `/home`).

</details>

#### Indexing limits (reminder)

* **Linux**: complex LVM2 is skipped at indexing time (multi-segment/striped)
* **Windows**: dynamic disks are skipped
* The Browse wizard cannot create indexing selections

### Monitoring backup jobs

In Tina you will see:

* A **Parent Job** for the overall operation
* A **Child Job** per VM (often in parallel)
* If indexing is enabled, a "backup indexing" sub-job linked to the child job

CLI tip: `tina_acct` with CSV export can display VM names (option `-v_vm_name`).

### Backing up VMs using VMware tags

You can filter the VMs that are visible and backed up with:

* `TINA_VCB_TAG_FILTER=category:tag`

The filter supports logical operators and wildcards. You can combine it with `TINA_VCB_FILTER_VM` (Windows/Linux/Other).

{% hint style="info" %}
`category` and `tag` must not contain spaces or `:`.
{% endhint %}

### Parallel backups (parallelism)

Parallelism reduces the backup window. It mainly depends on the **Parallelism Index** defined in the strategy.

**Example**: selection `/` plus index 4 means up to 4 VMs backed up in parallel.

{% hint style="warning" %}
Too much parallelism can overload vCenter, the proxy, the datastores, or the network. Increase it gradually and observe.
{% endhint %}

### Special case: vCenter hosted on a VM

Objective: avoid losing vCenter during an incident.

Recommendations:

* Create a **dedicated VMware application** for this scope
* Set the vCenter Server field to an **ESX host** (not vCenter)
* Back up only the vCenter VM
* Schedule it outside the backup windows of other applications

### Copying HVDS to tape (synthetic backup)

Use case: off-site export to tape.

#### Known limits

* Only one source HVDS strategy is allowed
* Writing to tape is `sidf` only
* No incremental on the destination strategy

#### Procedure (logic)

1. Create a dedup **Strategy** (source) to HVDS (for example strategy A)
2. Run a **full** on A
3. Create a **Standard** strategy (destination) to tape (for example strategy B)
4. Enable **Synthetic** on B and point it to A
5. Run the synthetic job B to write to tape

### HVDS version recycling

With HVDS, recycling mainly takes place when a new backup runs. If a VM is deleted from vCenter, its versions may remain referenced.

The `keep_outdated_hvds_instances` setting controls this behavior:

* `all`: keep everything
* `one`: keep one version
* `none`: delete everything (subject to retention)

Recycling is performed via a catalog maintenance job.

### Backing up database applications inside VMs

{% hint style="info" %}
Key point: the database must be **quiesced (paused)** for a consistent backup.
{% endhint %}

Two approaches:

* Windows: **VSS** (best if the application has a VSS Writer)
* Otherwise: **pre-freeze / post-thaw scripts** (stop/start the application)

Important limitation:

* The restore is a **full VM restore**
* No granular "database by database" restore
* No backup notification for certain applications (risk: log management, for example Exchange)

### Pre-freeze / post-thaw scripts (consistent snapshots)

#### Windows: locations and execution order

Tina looks for scripts in this order:

1. `C:\Program Files\VMware\VMwareTools\backupScripts.d`
2. `C:\Program Files\Atempo\VMwareTools\backupScripts.d`
3. path defined by the VM-local variable `TINA_VCB_VM_SCRIPTS_PATH`

Execution:

* **pre-freeze**: ascending alphabetical order, argument `freeze`
* **post-thaw**: descending alphabetical order, argument `thaw` or `freezeFail`

#### Linux: locations

* pre-freeze: `/usr/sbin/pre-freeze-script`
* post-thaw: `/usr/sbin/post-thaw-script`

#### Useful safeguards

* `TINA_VCB_SCRIPT_TIMEOUT`: script timeout (seconds)
* `TINA_VCB_USE_ONLY_SNAPSHOT_WITH_QUIESCE=yes`:
  * If the "quiesced" snapshot fails, the backup fails (instead of falling back to non-quiesced)

#### Backup User and script execution

* **Windows**: scripts run as the **Backup User** defined in the application. This account must exist inside the VM and have the required rights.
* **Linux**: no Backup User is required to run these scripts.

### Transport modes (VMware disk access)

Available modes:

* **SAN**: offload to a physical proxy with LUN access
* **Hot-Add**: proxy as a VM, fast (no IDE)
* **LAN (NBD / NBDSSL)**: network fallback

By default, Tina tries `SAN`, then `Hot-Add`, then `NBD`. To force the order or restrict the modes, use:

```
TINA_VCB_TRANSPORT_MODES=san:hotadd:nbd
```

To force an encrypted network transport:

```
TINA_VCB_TRANSPORT_MODES=nbdssl:nbd
```


---

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