Home / Reference / Backup & Restore

ONTAP backup & restore: SnapVault and NDMP, the practical parts

ONTAP has two backup mechanisms that are easy to confuse with replication: SnapVault, which copies snapshots to a second volume with long, policy-controlled retention (disk-to-disk), and NDMP, which streams data to tape or virtual tape libraries through third-party backup software. SnapMirror, by contrast, keeps a *replica* for disaster recovery — same data, short history. This guide covers when to use which, the exact commands for each, and how restores actually work.

ONTAP backup landscape: primary volume feeds SnapVault disk-to-disk destination with long retention, and NDMP dump to tape, both restorable

The three-copy confusion: mirror vs vault vs tape

The single biggest source of misconfiguration is treating SnapMirror, SnapVault, and NDMP as interchangeable. They are not:

MechanismWhat it keepsRetentionRecovery pointBest for
SnapMirror (XDP, mirror policy)A replica of the volume, updated on a scheduleShort — a handful of snapshots at the destinationMinutes (async) / zero (sync)Disaster recovery, failover, cloning at the DR site
SnapVault (XDP, vault policy)Snapshots copied from the source, *accumulated* at the destinationLong — days/weeks/months/years, per retention rulesAs scheduled (often hourly/daily)Compliance, versioned backup, ransomware recovery point
NDMPA dump/restore stream, typically to tape or VTLAs long as the tape media lastsAs scheduled by backup softwareOff-site media, air-gapped copies, archives, regulatory tape

Both SnapVault and NDMP backups are snapshot-based under the hood — the data streamed is taken from a snapshot, so the backup is crash-consistent even while the volume is hot. That is the key ONTAP design fact: backup reads snapshots, never live blocks.

SnapVault: what it is and how it differs from SnapMirror

SnapVault is SnapMirror with a vault policy. The relationship type is still XDP (extended data protection) — the difference lives entirely in the policy. A mirror policy tells the destination to keep a small, rolling set of snapshots; a vault policy tells it to keep whatever the retention rules say, accumulating them over time.

You can even mix: one source volume can have a SnapMirror relationship to a DR site and a SnapVault relationship to a backup volume — they are independent relationships with independent schedules and policies.

SnapVault setup, step by step

Setup mirrors SnapMirror, with two differences: the policy is a vault policy, and you normally let the relationship own its own snapshots rather than inheriting source snapshots.

# 1. Peer the clusters (one-time)
cluster peer create -peer-cluster backup-cluster -peer-addresses 10.0.20.2 -peer-username admin
vserver peer create -vserver vs1 -peer-vserver vsB -peer-cluster backup-cluster -applications snapmirror

# 2. Create a vault policy with explicit retention (or use VaultDefault)
snapmirror policy create -vserver vsB -policy VaultHourly \
  -transfer-priority normal \
  -is-policy-restricted true
snapmirror policy add-rule -vserver vsB -policy VaultHourly \
  -snapmirror-label hourly -keep 24
snapmirror policy add-rule -vserver vsB -policy VaultHourly \
  -snapmirror-label daily -keep 30

# 3. Create the vault relationship (XDP type, vault policy)
snapmirror create -source-path vs1:vol1 -destination-path vsB:vol_bu \
  -type XDP -policy VaultHourly -schedule hourly

# 4. First transfer — full baseline
snapmirror initialize -destination-path vsB:vol_bu

# 5. Watch it
snapmirror show -destination-path vsB:vol_bu -fields state,status,lag-time,last-transfer-end

Two details that trip people up:

Vault destination volumes are usually created empty by snapmirror create (the destination path's volume must exist or be creatable — with ONTAP 9.7+, you can use SnapMirror create with data protection to let ONTAP create and size the destination from the source's guarantees).

Restoring from a SnapVault backup

There are three restore paths, in increasing order of surgical precision:

# 1. Full-volume restore — overwrite the source volume from a backup snapshot
snapmirror restore -source-path vsB:vol_bu -destination-path vs1:vol1 \
  -from-snapshot daily.2026-08-20_0005

# 2. Whole-volume restore to a *new* volume (safer: keeps the original)
snapmirror restore -source-path vsB:vol_bu -destination-path vs1:vol1_restored \
  -from-snapshot daily.2026-08-20_0005

# 3. File-level recovery — mount a FlexClone of the backup snapshot
volume clone create -vserver vsB -volume vol_bu -snapshot daily.2026-08-20_0005 \
  -junction-path /clones/vol_bu_0820
# then copy individual files out of /clones/vol_bu_0820 over NFS/SMB

NDMP: ONTAP's tape protocol

Network Data Management Protocol is how ONTAP talks to backup software (NetBackup, Commvault, Veeam with NDMP connectors, Backup Exec, etc.) for tape and virtual tape library (VTL) backups. ONTAP's NDMP implementation is a dump/restore engine: the backup software issues an NDMP dump of a volume or path, ONTAP streams the data, and the software writes it to tape. Restores are the reverse (restore from tape back into a volume).

Key facts to get right:

# Enable NDMP on the SVM
vserver services ndmp modify -vserver vs1 -is-enabled true

# Create an NDMP user (backup role)
security login create -vserver vs1 -user-or-group-name ndmpuser \
  -application ndmp -authmethod password -role backup

# Create a dedicated NDMP data LIF (recommended for three-way setups)
network interface create -vserver vs1 -lif ndmp-lif -role data \
  -data-protocol ndmp -home-node node1 -home-port e0c \
  -address 10.0.30.5 -netmask 255.255.255.0

# Verify the service state
vserver services ndmp show -vserver vs1

# When a dump job is running, watch it
vserver services ndmp status -vserver vs1

The actual dump and restore commands are issued by the backup software, not typed at the ONTAP CLI — but you can test an NDMP environment end-to-end with ndmpcopy (the built-in file-based copy tool) before the backup admins arrive.

NDMP restore: the gotchas

SnapVault vs NDMP: how to choose

ConsiderationSnapVaultNDMP
Restore speedNear-instant (clone) to fast (block-level)Slow — full stream from tape
MediaDisk (another ONTAP volume)Tape, VTL, or disk-staging via backup software
Off-site / air-gapOnly via a second relationship or copyTape leaves the building naturally
GranularityAny point-in-time snapshot, file-level via cloneWhatever the backup software catalogued
ManagementPure ONTAP CLI/RESTThird-party backup suite (and its licensing)
Cost modelDisk capacity on the destinationMedia + backup software licenses + library

The mainstream design is both: SnapVault for fast, frequent, disk-based recovery points, and NDMP to tape (or a VTL that replicates off-site) for the compliance/archive copy. SnapCenter is NetApp's orchestration layer on top of these — it schedules the application-consistent snapshots that both mechanisms consume.

Operational checklist

Related guides: SnapMirror troubleshooting, snapshots & copy-on-write, security hardening, CLI cheat sheet. Commands verified against ONTAP 9.x CLI conventions; check man snapmirror / vserver services ndmp help on your exact release.