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

# NDMP

## Tina client for NDMP

This topic describes the backup and restore mechanisms for file servers by Tina via the NDMP protocol:

* [Backup](#backup)
* [Restore](https://documentation.atempo.com/tina-4.9.5/tina-4.9.5-en/administration-guide/restore.md)

### Backup

Tina triggers a backup by sending a request to the NDMP server via Tina Client for NDMP. The NDMP server, which controls the backup drives, writes data directly to the media through the Tape service, without going through the Tina cache. It also updates the catalog by sending it the backup history containing information about the backed-up objects.\
The NDMP server manages the media format. If a backup or restore operation requires multiple media, Tina cannot determine which medium a given object is on, nor control the size of the tape files. The size of the tape files will be limited by the size of the media.

> **Note**: When backing up NetApp file servers, the Tina catalog update takes place after all data has been backed up. The drive is therefore available before the backup job is actually complete.

#### Granularity

Granularity applies to the backup objects and versions recorded in the catalog.\
It lets you define the level of information that is saved in the catalog.\
Since the backup methods offered by file servers do not provide the ability to apply granularity to the backup history, all objects are backed up. Tina Client for NDMP must therefore filter the objects it receives, so as to send the Tina server only the list of objects matching the selected granularity, which it then records in the catalog.

<table><thead><tr><th width="169.3333740234375">Granularity level</th><th width="225.3333740234375">Mode</th><th>Target / Description</th></tr></thead><tbody><tr><td><strong>Finest</strong></td><td><code>TINA_PACK_MODE = FILE</code></td><td>Default value. File-by-file backup. All objects are visible in the restore and archiving interface, enabling very precise restores. ➡️ Advantage: fine-grained, detailed restore. ➡️ Drawback: larger catalog and heavier administration.</td></tr><tr><td><strong>Intermediate</strong></td><td><code>TINA_PACK_MODE = DIR</code></td><td>Directory-based backup. Simplifies administration of backups and restores. ➡️ Advantage: reduces the catalog space required and simplifies management.</td></tr><tr><td><strong>Coarsest level</strong></td><td><code>TINA_PACK_MODE = CLASS</code></td><td><p>Backup by backup selection (global level). The server does not send the detailed history to the catalog. ➡️ Advantages:</p><ul><li>Smaller catalog</li><li>Less network traffic</li><li>Simplified administration ➡️ Ideal for: <strong>disaster recovery</strong> (restore after a major incident).</li></ul></td></tr></tbody></table>

#### Full backups

When Tina triggers a full backup, the file server performs a dump of all the data contained in the backup selections to the media. For more information on configuring full backups, see the Tina Administration Documentation.

#### Incremental backups

Standard Tina incremental backup consists in backing up only the files modified or created since the previous backup, whether full or incremental. NDMP file servers also support other incremental backup modes. For file servers, there are four incremental backup methods:

* Standard incremental backup
* Date-based incremental backup
* Daily incremental backup
* Differential incremental backup The method to apply is specified by the value of the environment variable <kbd>TINA\_INCR\_ METHOD.</kbd>

**Standard incremental backup**~~**(TINA\_INCR\_METHOD=INCR)**~~

The first Standard incremental backup consists of a full backup. Each subsequent incremental backup is based on the previous backup, whether full or incremental.

<figure><img src="https://137371609-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HOI4mniMS7pDfClN83G%2Fuploads%2F5b2HhDQIbaFBuQHLOahf%2Fimage.png?alt=media&amp;token=fb30bba2-339c-4325-b7aa-cf00fc15939e" alt="" width="563"><figcaption></figcaption></figure>

> **Note**: NetApp file servers with Data ONTAP 8.2 and later do not support this method. If this is your case, use the date-based incremental backup method.

**Date-based incremental backup&#x20;**~~**(TINA\_INCR\_METHOD=BASE\_DATE)**~~

The Date-based incremental backup performs the same type of backup as the Standard incremental backup above. However, it is only compatible with NetApp file servers running a Data ONTAP version later than 8.2, or other file servers supporting the NDMP variable <kbd>BASE\_DATE.</kbd>

> **Note**: The number of date-based incremental backups is limited to 32 maximum. Beyond 32 incremental backups, you must run a full backup.

**Daily incremental backup&#x20;**~~**(TINA\_INCR\_METHOD=BY\_DAY)**~~

This method is based on a weekly schedule. Tina assigns each day of the week an incremental backup level (from 1 for Monday to 7 for Sunday). A full backup is always level 0 regardless of the day of the week.

A Daily incremental backup takes into account the files modified since the most recent lower-level backup, whether full or incremental. Given these backup levels, it is recommended to perform one full backup (level 0) per week on Sunday and one incremental backup per day (except Sunday). This frequency optimizes backup performance.

<figure><img src="https://137371609-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HOI4mniMS7pDfClN83G%2Fuploads%2FB9Eidm9V81yx5U4DoMPZ%2Fimage.png?alt=media&amp;token=da0c12aa-7f48-4a13-91ed-2f5f12024c56" alt=""><figcaption></figcaption></figure>

If you choose to perform your full backups on a day other than Sunday, Wednesday for example, backup performance will not be optimal. Indeed, on Monday (level 1), the incremental backup will refer to the full backup (level 0) from Wednesday. As a result, objects backed up from Thursday to Saturday will be backed up again.

**Differential incremental backup&#x20;**~~**(TINA\_INCR\_METHOD=DIFF)**~~

The Differential incremental backup corresponds to backing up data modified after the last full backup, even if an incremental backup has been performed more recently.

<figure><img src="https://137371609-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HOI4mniMS7pDfClN83G%2Fuploads%2FIWBn4kFs4ojEvTIEmswv%2Fimage.png?alt=media&amp;token=775a747d-62e1-42c5-bb91-049c321765d0" alt=""><figcaption></figcaption></figure>

This method makes restore easier if you perform backups with backup selection granularity (CLASS) or directory granularity (DIR). See [Restore and granularity](#restore-and-granularity).

#### Backup strategies and selections

**Backup strategy**

You must create a backup strategy to define the type and frequency of\
backups, the associated media sets, and any pre/post-processing. Tina sets the data write format on the media to Unknown, and you cannot change it.

* It is the file server that manages the backup dates, not Tina. It is\
  therefore recommended not to perform incremental backups of the same\
  object via multiple strategies or applications.
* NDMP does not support multiple writing for backups.

For more information on backup strategies, see the Tina\
Administration Documentation.

**Backup selection**

By default, Tina sets a backup selection on the root meta-directory of the file tree so that the entire tree is backed up. The default backup selection has the following characteristics:

* It is associated with all backup strategies.
* No filter is set.
* No time slot is excluded.
* The data is neither compressed (it is not possible to compress data at the\
  source) nor encrypted.

To modify this default backup selection or create new selections, in the Restore and archiving interface of the NDMP application, choose the menus Backup Backup selection Properties or Backup Backup selection New.\
Tina Client for NDMP only allows the use of Name filters in the backup\
selection. It is the type of file server that determines whether Selection and/or Exclusion filters can be configured. Some file servers do not support any backup filter.\
See <mark style="color:blue;">NDMP file servers</mark> for more information on filter limitations and the specific description of each file server.\
Tina supports the backup selection setting <kbd>Format</kbd> only when using Tina NDMP Server.

> **Note**: Make sure the volumes of the NDMP file server are mounted (Unix) or accessible by Tina (Windows) so that you can browse this server's file tree in Present and create backup selections.

### Restore

For detailed information on restore procedures, see the\
[Tina Administration Documentation.](https://documentation.atempo.com/tina-4.9.5/tina-4.9.5-en/administration-guide/overview.md)

> **Note**: The restore test function is not available for the NDMP application.

#### Restore and granularity

During restore, take the following information into account:

* **DIR**. In the Restore and archiving interface, when you select directories backed up with directory granularity (DIR) for restore, make sure to keep their child directories selected as well. Partial restores are not allowed, so you must restore the entire contents of the directory.
* **CLASS or DIR**. When restoring objects backed up with backup selection granularity (CLASS) or directory granularity (DIR), Tina only restores the latest backup version. If the latest version is an incremental backup, the restore will be incomplete. You must therefore restore the last full backup plus all subsequent incremental backups.

To limit the number of restore operations, Atempo recommends using the differential incremental backup (<kbd>TINA\_INCR\_METHOD=DIFF</kbd>) for backup selection or directory granularity. See [Incremental backups.](#incremental-backups)

#### Restore to a different directory

If the restore destination is different from the original directory, you can browse the file tree to select the destination directory. By default, only the selected object is restored. Parent directories are not restored. If the selected object corresponds to a backup selection, only the contents of the directory are restored, not the directory itself. If you also want to restore the parent directories, set the environment variable <kbd>NDMP\_RESTO\_ALL\_DIR</kbd> to <kbd>yes</kbd>. See [Creating the Tina Client for NDMP application](#tina-client-for-ndmp) for more information on the variables.

#### Cross restore to a different file server

It is possible to restore NDMP data to a file server different from the original one, provided the destination file server is of the same type.\
During restore, choose the backup folder of the NDMP application associated with the destination file server.\
For more information, see the Tina Administration Documentation.

#### Restore limitations

* The following restore options are not available for the NDMP application:
  * Choice of restore level: All elements will be restored (data and attributes).
  * Restoring all backup versions of an object: Only one backup version can be restored at a time.
  * Choice of restore behavior if the file already exists in the destination directory: If a file already exists, it will be replaced by the restored file.
  * Choice of restore behavior if one of the required cartridges is offline: If a cartridge is offline, the only option offered is to Issue an Operator Query for each offline cartridge.
* If the variable <kbd>NDMP\_DIRLIST</kbd> is set, the directory where the data will be restored must exist. Otherwise, Tina will not be able to create it and the restore will fail.
* For some NDMP file servers, it is reading the first cartridge that indicates the location of the data to be restored. In this case, all cartridges required for the restore must be present in the library during the restore.
* If you need to restore data from a duplicated cartridge, it is preferable to set the Files backed up since filter in the file tree before launching the restore (Menu Tree Filters). This avoids loading cartridges containing data that is not needed for the restore.

#### Direct Access Restore (DAR)

**DAR** is a feature that allows restoring up to 1,024 files much faster. The file server simply reads the header of the dump file on the first medium, and then only the media containing the information to be restored. DAR is not supported by all file servers. Please refer to your file server's documentation for more details.

DAR is automatically enabled by Tina Client for NDMP if the file server is compatible with DAR. If performance is degraded when restoring more than 1,024 files, it is recommended to disable DAR by setting the environment variable **NDMP\_DISABLE\_DAR** to **YES**.

> **Note**: Atempo cannot guarantee that an object whose path contains more than 1,024 characters will be restored correctly with **DAR**. If the restore fails, it is recommended to restore the parent directory, which will have a shorter path.

## Tina NDMP Data Server

> **Note**: Backup and restore via the Tina NDMP Data Server require a Tape Server on the platform to which the library is attached. If you want to use Tina Tape Server, see [Tina NDMP Tape Server.](#tina-ndmp-tape-server)

Backup and restore of file servers via the Tina Tape Server uses a Tina Client for NDMP.

For information on backup and restore of file servers, see [Tina Client for NDMP.](#tina-client-for-ndmp)

## Tina NDMP Tape Server

Backup and restore of file servers via the Tina Tape Server use a Tina Client for NDMP application.\
For information on backup and restore of file servers, see [Tina Client for NDMP.](#tina-client-for-ndmp)

## Tina for ATL Gigabit Ethernet DLT Drives

### Backup of file servers (NAS)

If you want to back up a file server (NAS) on a P-series library equipped with ATL Gigabit Ethernet drives, you must create an NDMP application and integrate the GbE DLT drives into it.\
For more information on creating the NDMP application, see [Tina Client for NDMP](#tina-client-for-ndmp) and [Description file configuration](#configuring-the-backup-of-a-vdm).

## Backup of VDMs

A physical EMC Celerra Data Mover can host several VDMs, each with its own IP address and hostname, functioning almost like a physical Data Mover. VDM file systems are backed up through the physical Data Mover since they are directly accessible from it. The file systems used by the VDMs have a specific access path.\
This backup configuration has the following advantages:

* When an EMC Celerra file server has direct access to tapes, backing\
  up a VDM via the main physical Data Mover allows Tina to detect that the Data Server and the Tape Server are running on the same machine. In this case, data does not travel over the network but is sent directly to the tapes.
* When several VDMs are running on a physical Data Mover, you can create a Tina NDMP application for each of them if needed, without purchasing an additional\
  license. Indeed, if all backups are performed via the physical Data\
  Mover, the NDMP server will be the same for all NDMP applications, and only one license will be required.

### Configuring the backup of a VDM

To configure the backup of a VDM, you must:

* Identify the file system to back up on the VDM.
* Configure Tina for NDMP to back up this file system.

**Identify the VDM's file system**

> **Note**: All the commands described below are executed from the Celerra Control Station.

1. Identify the name of the VDM by running this command:

   ```shell
   [root@HOST001 ~]# nas_server -list -all
   id type acl slot groupID state name
   1 1 0 2 0 server_A
   2 4 0 3 0 server_B
   id acl server mountedfs rootfs name
   1 0 1 23,96,97,158,15 43 vdm_aaa
   2 0 1 25,99,100 44 vdm_bbb
   3 0 1 26,102,103 45 vdm_ccc
   4 0 1 27,105,106 46 vdm_ddd
   5 0 1 33,34,35,36,37, 47 vdm_eee
   ```

   <kbd>server\_A</kbd> is the active physical Data Mover that hosts all the VDMs. In this example, our VDM will be <kbd>vdm\_eee.</kbd>
2. Identify the VDM's file systems by running this command:

   ```
   [root@HOST001 ~]# server_df vdm_eee
   vdm_eee : Filesystem  kbytes   used   avail capacity  Mounted on
   root_dir1   10082984 321360 9761624  3%  /root_dir1
   ... ... 
   fs_1       50417984 4048856 46369128 8%  /fs_1
   fs_2       50417984 2872   50415112 0%  /fs_2
   fs_4       10082984 321584 9761400  3%  /fs_4
   fs_3       312595984 255545152 57050832 82% /fs_3
   ```

   The file system to back up is <kbd>fs\_3 filesystem</kbd> on the VDM <kbd>vdm\_eee.</kbd>
3. Identify the CIFS share or NFS export of the file system by running this command:

   ```bash
   [root@HOST001 ~]# server_export vdm_eee -Protocol cifs -list
   vdm_eee : 
     share "FS1" "/fs_1/share" umask=022 maxusr=4294967295 netbios=HOST0AX
     share "FS2" "/fs_2/share" umask=022 maxusr=4294967295 netbios=HOST0AX
     share "FS3" "/fs_3/share" umask=022 maxusr=4294967295 netbios=HOST0AX
     share "FS4" "/fs_4/share" umask=022 maxusr=4294967295 netbios=HOST0AX
   ```

   The CIFS share of <kbd>fs\_3</kbd> is <kbd>FS3</kbd>, and it is declared on the share subdirectory.
4. Identify the full path of this file system for the physical Data Mover, by running this command:

   ```
   [root@HOST001 ~]# server_df server_A | grep fs_3
   fs_3 312595984 255545152 57050832 82% /root_vdm_xxx/fs_3
   ```

   The full path is <kbd>/root\_vdm\_xxx/fs\_3.</kbd>

**Configure Tina**

1. Create a share configuration file, for example, <kbd>shares\_cifs.cfg</kbd>, containing the full path of the VDM. <kbd>root\_vdm\_xxx/fs\_3/share \HOST0AX\FS3</kbd> See [Share definition](#configuring-the-backup-of-a-vdm) for more information.
2. Create a Tina NDMP application on a Windows agent in the same Windows domain as the Celerra, and add the environment variable <kbd>TINA\_SHARE\_DEFINITION</kbd>. The value of this variable is the full path of the share configuration file <kbd>TINA\_SHARE\_DEFINITION = C:\Program Files\Atempo\tina\shares\_cifs.cfg</kbd> See [<mark style="color:blue;">Creating the Tina Client for NDMP application</mark>](#tina-client-for-ndmp) for more information.


---

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