How to exclude files and directories from NDMP backups

Article: 100000504
Last Published: 2015-01-29
Ratings: 1 1
Product(s): NetBackup & Alta Data Protection

Description

To exclude files on NetApp when using NetBackup with Network Data Management Protocol (NDMP), insert an entry in the file list that sets the EXCLUDE NDMP environmental variable on the line before the volume inclusion.

For example:  To exclude a directory named /vol/vol1/A, but to dump the rest of the volume, create a NetBackup class file list which would look like this:

SET EXCLUDE=A
/vol/vol1


To exclude multiple files or directories use commas to delimit the field:

SET EXCLUDE=A,B,C
/vol/vol1
 
Note: Use only commas "," to delimit/separate multiple files/directories, don't also use space " ", e.g. " SET EXCLUDE=A, B, C" doesn't work as instead of excluding "C", " C" is excluded (if it exists).
 
If space " " is part of the file/directory name:
 
The exclude list is specified relative to the dump path. Enclose the string in single quotes:

SET EXCLUDE='file with space in name'
/vol/volx

The rules are stated as being the same as they are for native dump commands.
  • The exact name of the file or directory must be used.
  • An asterisk (*) is a wildcard character. The asterisk must be either the first or the last character of the string. Each string can have up to two asterisks.
  • A comma in a file or directory name must be preceded with a backslash.
  • The exclude list can contain up to 32 names.
*Refer to the Ontap manuals for DUMP for more information.*

Was this content helpful?