Windows operating systemsLinux operating systems

Snapdiff

Using the snapdiff (snapshot difference) option with the incremental command streamlines the incremental backup process. The command runs an incremental backup of the files that were reported as changed by NetApp instead of scanning all of the volume for changed files.

Windows operating systemsThe snapdiff option is for backing up NAS/N-Series file server volumes that are CIFS attached.

Linux operating systemsThe snapdiff option is for backing up NAS/N-Series file server volumes that are NFS attached.

Windows operating systemsRestriction: None of the NetApp predefined shares, including C$, works with the IBM Spectrum Protect snapshot difference option because the backup-archive client cannot determine their mount points programmatically.

You must configure a user ID and password on the backup-archive client to enable snapshot difference processing.

Use this option with an incremental backup of a NAS file server volume, instead of a simple incremental backup or an incremental backup with the snapshotroot option, whenever the NAS file server is running ONTAP 7.3.0, or later. Do not use the snapdiff and snapshotroot options together.

Linux operating systemsRestriction: Incremental backups with snapshot difference processing are only available with the Linux x86_64 backup-archive client.

The first time that you run an incremental backup with the snapshot difference option, a snapshot is created (the base snapshot) and a traditional incremental backup is run by using this snapshot as the source. The name of the snapshot that is created is recorded in the IBM Spectrum Protect server database. The initial incremental backup must complete without failure in order for the next backup operation to use snapshot difference processing.

The second time an incremental backup is run with this option, a newer snapshot is either created, or an existing one is used (depending on the value set for the diffsnapshot option) to find the differences between these two snapshots. The second snapshot is called the diffsnapshot, or differences snapshot. The client then incrementally backs up the files that are reported as changed, by NetApp, to the IBM Spectrum Protect server. The file system that you select for snapshot difference processing must be mounted to the root of the volume. You cannot use the snapdiff option for any file system that is not mounted to the root of the volume. After you backed up the data with the snapdiff option, the snapshot that was used as the base snapshot is deleted from the snapshot directory.

Windows operating systemsOn Windows systems, the snapshot directory is in ~snapshot.

Linux operating systemsOn Linux systems, the snapshot directory is in .snapshot.

The client does not delete any snapshots that it did not create.

When a snapshot-differential-incremental backup operation completes, the client ensures that only the most recently-registered base snapshot persists on the filer volume. All snapshots that are created by a snapshot-differential-incremental backup on the backup-archive client begin with the characters "TSM_". If you use a snapshot tool other than the backup-archive client to produce snapshots, ensure that you do not use the string "TSM_" at the beginning of the snapshot name. If the snapshot names begin with "TSM_", the files are deleted when the client initiates the next snapshot-differential-incremental backup operation.

To run a snapshot-differential-incremental backup of read-only NetApp filer volumes, the useexistingbase option must be specified to prevent an attempt to create a snapshot on the read-only volume. Also, specify the name of the base snapshot to use (basesnapshotname option) and the name of the differential snapshot to use (diffsnapshotname option).

For NAS and N-Series file servers that are running ONTAP 7.3.0, or later, you can use the createnewbase option to back up any files that were skipped because of one of the following reasons:

  • A file is excluded because the include-exclude file has an exclude rule in effect. A file is excluded when you did not change the include-exclude file, but you removed the rule that excluded the file. The NetApp API detects file changes only between two snapshots, not changes to the include-exclude file.
  • If you added an include statement to the option file, that include option does not take effect unless NetApp detects that the file changes occurred. The client does not inspect each file on the volume during backup.
  • You used the dsmc delete backup command to explicitly delete a file from the IBM Spectrum Protect server inventory. NetApp does not detect that a file was manually deleted from the server. Therefore, the file remains unprotected in IBM Spectrum Protect storage until it is changed on the volume and the change is detected by NetApp, signaling the client to back it up again.
  • Policy changes such as changing the policy from mode=modified to mode=absolute are not detected.
  • The entire file space is deleted from the IBM Spectrum Protect inventory. This action causes the snapshot difference option to create a snapshot to use as the source, and runs a full incremental backup.
  • A file is excluded from backup because the file name contains a character that is not in the 7 bit-ASCII character set. The createnewbase option creates a base snapshot and uses it as a source to run a full incremental backup. NetApp controls what constitutes a changed object.
Tip: You can use the snapdiffhttps option to run snapshot-differential-incremental backups of NetApp filers with a secure HTTPS connection. To successfully run snapshot-differential-incremental backups, previous releases of the backup-archive client required HTTP administrative access to be enabled on the NetApp filer. With the snapdiffhttps option, you can establish a secure administrative session with the NetApp filer regardless of whether HTTP administrative access is enabled on the filer.

Snapshot differential backup operations are not supported in the IBM Spectrum Protect for Virtual Environments environment. You cannot run snapshot differential backup operations of a file system that resides on a NetApp filer on a host where the Data Protection for VMware or Data Protection for Microsoft Hyper-V data mover is also installed.

In the list of options that are used by the traditional incremental command, the last column shows the interaction of each option with the snapdiff option. The following information describes the definitions of valid, not valid, and no effect:
Valid
Processing runs normally when the option is used.
Not valid
If the option is used with the snapdiff option, an error message is generated.
No effect
The option can be used, but it is ignored.
Table 1. Incremental command: Related options
Option Where specified With snapdiff
Linux operating systemsAIX operating systemsasnodename Linux operating systemsAIX operating systemsClient system options file (dsm.sys) or command line. Linux operating systemsAIX operating systemsValid
Windows operating systemsasnodename Windows operating systemsClient options file (dsm.opt) or command line. Windows operating systemsValid
Linux operating systemsAIX operating systemsautomount Linux operating systemsAIX operating systemsClient options file (dsm.opt). Linux operating systemsAIX operating systemsNo effect
Windows operating systemsautofsrename Windows operating systemsClient options file (dsm.opt) only. Windows operating systemsNo effect
Linux operating systemsAIX operating systemsbasesnapshotname Linux operating systemsAIX operating systemsClient options file (dsm.opt) or command line. Linux operating systemsAIX operating systemsValid
Windows operating systemsbasesnapshotname Windows operating systemsClient options file (dsm.opt) or command line. Windows operating systemsValid
Linux operating systemsAIX operating systemschangingretries Linux operating systemsAIX operating systemsClient system options file (dsm.sys) or command line. Linux operating systemsAIX operating systemsNo effect
Windows operating systemschangingretries Windows operating systemsClient options file (dsm.opt) or command line. Windows operating systemsNo effect
Windows operating systemscompressalways Windows operating systemsClient options file (dsm.opt) or command line. Windows operating systemsValid
Linux operating systemsAIX operating systemscompressalways Linux operating systemsAIX operating systemsClient options file (dsm.opt) or command line. Linux operating systemsAIX operating systemsValid
Windows operating systemscompression Windows operating systemsClient options file (dsm.opt) or command line. Windows operating systemsValid
Linux operating systemsAIX operating systemscompression Linux operating systemsAIX operating systemsClient system options file (dsm.sys) within a server stanza, or command line. Linux operating systemsAIX operating systemsValid
Windows operating systemsLinux operating systemsAIX operating systemscreatenewbase Windows operating systemsLinux operating systemsAIX operating systemsCommand line only. Windows operating systemsLinux operating systemsAIX operating systemsValid
diffsnapshot Command line only. Valid
Linux operating systemsAIX operating systemsdiffsnapshotname Linux operating systemsAIX operating systemsClient options file (dsm.opt) or command line. Linux operating systemsAIX operating systemsValid
Windows operating systemsdiffsnapshotname Windows operating systemsClient options file (dsm.opt) or command line. Windows operating systemsValid
dirsonly Command line only. Valid
Windows operating systemsdomain Windows operating systemsClient options file (dsm.opt) or command line only. Windows operating systemsValid
Linux operating systemsAIX operating systemsdomain Linux operating systemsAIX operating systemsClient system options file (dsm.sys), client user-options file (dsm.opt), or command line. Linux operating systemsAIX operating systemsValid
Linux operating systemsAIX operating systemsefsdecrypt Linux operating systemsAIX operating systemsClient system options file (dsm.sys), client user-options file (dsm.opt), or command line. Linux operating systemsAIX operating systemsNo effect
Linux operating systemsAIX operating systemsenablelanfree Linux operating systemsAIX operating systemsClient system options file (dsm.sys) or command line. Linux operating systemsAIX operating systemsValid
Windows operating systemsenablelanfree Windows operating systemsClient options file (dsm.opt) or command line. Windows operating systemsValid
Linux operating systemsAIX operating systemsencryptiontype Linux operating systemsAIX operating systemssystem-options file (dsm.sys) within a server stanza. Linux operating systemsAIX operating systemsValid
Windows operating systemsencryptiontype Windows operating systemsClient options file (dsm.opt). Windows operating systemsValid
Windows operating systemsencryptkey Windows operating systemsClient options file (dsm.opt). Windows operating systemsValid
Linux operating systemsAIX operating systemsencryptkey Linux operating systemsAIX operating systemsSystem-options file (dsm.sys) within a server stanza. Linux operating systemsAIX operating systemsValid
Linux operating systemsAIX operating systemsexclude.fs.nas Linux operating systemsAIX operating systemsClient system options file (dsm.sys). Linux operating systemsAIX operating systemsNo effect
Windows operating systemsexclude.fs.nas Windows operating systemsClient options file (dsm.opt). Windows operating systemsNo effect
filelist Command line only. Not valid
filesonly Command line only. Valid
Linux operating systemsAIX operating systemsfollowsymboliclink Linux operating systemsAIX operating systemsClient options file (dsm.opt). Linux operating systemsAIX operating systemsNo effect
Linux operating systemsAIX operating systemsinclude.fs.nas Linux operating systemsAIX operating systemsClient system options file (dsm.sys) or command line. Linux operating systemsAIX operating systemsNo effect
Windows operating systemsinclude.fs.nas Windows operating systemsClient options file (dsm.opt) or command line. Windows operating systemsNo effect
Linux operating systemsAIX operating systemsinclexcl Linux operating systemsAIX operating systemsClient system options file (dsm.sys). Linux operating systemsAIX operating systemsValid, but only when a file change is detected by NetApp.
Windows operating systemsinclexcl Windows operating systemsClient options file (dsm.opt). Windows operating systemsValid, but only when a file change is detected by NetApp.
incrbydate Command line only. Not valid
Windows operating systemsmemoryefficientbackup Windows operating systemsClient options file (dsm.opt), server, or command line. Windows operating systemsNo effect
Linux operating systemsAIX operating systemsmemoryefficientbackup Linux operating systemsAIX operating systemsThis option is allowed in both dsm.sys and dsm.opt, but the value in dsm.opt is ignored if it is also in dsm.sys. You can also place this option within a server stanza, or on the initial command line. Linux operating systemsAIX operating systemsNo effect
monitor Command line only. Not valid
Linux operating systemsAIX operating systemsnojournal Linux operating systemsAIX operating systemsCommand line only. Linux operating systemsAIX operating systemsNot valid
Windows operating systemsnojournal Windows operating systemsCommand line only. Windows operating systemsNot valid
Linux operating systemsAIX operating systemspostsnapshotcmd Linux operating systemsAIX operating systemsClient system options file (dsm.sys) or with the include.fs option. Linux operating systemsAIX operating systemsValid
Windows operating systemspostsnapshotcmd Windows operating systemsClient options file (dsm.opt) or with the include.fs option. Windows operating systemsValid
Linux operating systemsAIX operating systems
preservelastaccessdate
Linux operating systemsAIX operating systemsClient user-options file (dsm.opt) or command line. Linux operating systemsAIX operating systemsValid
Windows operating systemspreservelastaccessdate Windows operating systemsClient options file (dsm.opt) or command line. Windows operating systemsValid
Linux operating systemsAIX operating systemspresnapshotcmd Linux operating systemsAIX operating systemsClient system options file (dsm.sys) or with the include.fs option. Linux operating systemsAIX operating systemsValid
Windows operating systemspresnapshotcmd Windows operating systemsClient options file (dsm.opt) or with the include.fs option. Windows operating systemsValid
Linux operating systemsAIX operating systemsremoveoperandlimit Linux operating systemsAIX operating systemsCommand line only. Linux operating systemsAIX operating systemsValid
Windows operating systemsresetarchiveattribute Windows operating systemsClient options file (dsm.opt). Windows operating systemsValid
Linux operating systemsAIX operating systemsskipaclupdatecheck Linux operating systemsAIX operating systemsClient options file (dsm.opt). Linux operating systemsAIX operating systemsValid
Windows operating systemsskipntpermissions Windows operating systemsClient options file (dsm.opt) or command line. Windows operating systemsValid
Windows operating systemsskipntsecuritycrc Windows operating systemsClient options file (dsm.opt) or command line. Windows operating systemsValid
Windows operating systemsLinux operating systemsAIX operating systemssnapdiffhttps Windows operating systemsLinux operating systemsAIX operating systemsCommand line only. Windows operating systemsLinux operating systemsAIX operating systemsValid
Linux operating systemsAIX operating systemssnapshotcachesize Linux operating systemsAIX operating systemsClient system options file (dsm.sys) or with the include.fs option. Linux operating systemsAIX operating systemsNo effect
Linux operating systemsAIX operating systemssnapshotproviderfs Linux operating systemsAIX operating systemsSystem-options file (dsm.sys) within a server stanza or with the include.fs option. Linux operating systemsAIX operating systemsNot valid
Windows operating systemssnapshotproviderfs Windows operating systemsClient options file (dsm.opt) or with the include.fs option. Windows operating systemsNot valid
Linux operating systemsAIX operating systemssnapshotproviderimage Linux operating systemsAIX operating systemsClient system options file (dsm.sys) or with the include.image option. Linux operating systemsAIX operating systemsNot valid
Windows operating systemssnapshotproviderimage Windows operating systemsClient options file (dsm.opt) or with the include.image option. Windows operating systemsNot valid
snapshotroot Command line only. Not valid
subdir Client options file (dsm.opt) or command line. Not valid
Linux operating systemsAIX operating systemstapeprompt Linux operating systemsAIX operating systemsClient options file (dsm.opt) or command line. Linux operating systemsAIX operating systemsValid
Windows operating systemstapeprompt Windows operating systemsClient options file (dsm.opt) or command line. Windows operating systemsValid
Linux operating systemsAIX operating systemstoc Linux operating systemsAIX operating systemsCommand line only. Linux operating systemsAIX operating systemsNot valid
Windows operating systemstoc Windows operating systemsCommand line only. Windows operating systemsNot valid
Linux operating systemsAIX operating systemsuseexistingbase Linux operating systemsAIX operating systemsCommand line only. Linux operating systemsAIX operating systemsValid
Windows operating systemsuseexistingbase Windows operating systemsCommand line only. Windows operating systemsValid
virtualfsname Command line only. Not valid
Linux operating systemsAIX operating systemsvirtualmountpoint Linux operating systemsAIX operating systemsClient system options file (dsm.sys). Linux operating systemsAIX operating systemsNot valid

Supported Clients

Windows operating systemsThis option is valid for all Windows clients.

Linux operating systemsThis option is valid for Linux x86_64 clients.

Syntax

Read syntax diagramSkip visual syntax diagram SNAPDiff

Parameters

There are no parameters for this option.

Examples

Linux operating systemsCommand line:
Linux operating systemsPerform a snapshot-differential-incremental backup of an NFS mounted file system /vol/vol1 hosted on the file server homestore.example.com, where /net/home1 is the mount point of /vol/vol1.
Linux operating systemsincremental -snapdiff -diffsnapshot=latest /net/home1
Windows operating systemsCommand line:
Windows operating systemsPerform a snapshot-differential-incremental backup from a snapshot that is taken of a network share //homestore.example.com/vol/vol1 mounted on drive H:, where homestore.example.com is a file server.
Windows operating systemsincremental -snapdiff H:
Windows operating systemsPerform a snapshot-differential-incremental backup from a snapshot that is taken of a network share //homestore.example.com/vol/vol1 mounted on drive H:, where homestore.example.com is a file server. The -diffsnapshot option value of LATEST means that the operation uses the latest snapshot (the active snapshot) for volume H:.
Windows operating systemsincremental -snapdiff H: -diffsnapshot=latest
Command line:
Run a one-time full incremental backup after detecting that the NetApp server has migrated to a unicode-enabled file server from a server that did not support unicode file names.Linux operating systems
dsmc incremental -snapdiff -createnewbase=migrate /net/home1 
Windows operating systems
dsmc incremental -snapdiff -createnewbase=migrate h:
Run a snapshot-differential-incremental backup after detecting that the NetApp server has migrated to a unicode-enabled file server from a server that did not support unicode file names. This command suppresses the warning message.Linux operating systems
dsmc incremental -snapdiff -createnewbase=ign /net/home1
Windows operating systems
dsmc incremental -snapdiff -createnewbase=ign h:
Perform a full incremental backup because you made some include or exclude changes:Linux operating systems
dsmc incremental -snapdiff -createnewbase=yes /net/home1 
Windows operating systems
dsmc incremental -snapdiff -createnewbase=yes h: