OneFS NDMP supports features to include or exclude files and directories from backup.
The include feature allows for flexible selection of which files or directories that are included when backing up data. You can include files and directories from NDMP backup operations by specifying NDMP the environment variable FILES through a DMA. If you include a file or directory for a backup and do not exclude that file or directory, that file or directory will only be backed up. In other words, all other files and directories are automatically excluded from backups.
The exclude feature allows for flexible selection of which files or directories that are excluded when backing up data. You can exclude files and directories from NDMP backup operations by specifying NDMP the environment variable EXCLUDE through a DMA. If you exclude a file or directory for a backup, all files and directories except the excluded file or directory will be backed up.
If you set both the include and exclude patterns for a backup, the include pattern is first processed followed by the exclude pattern. If you set both the include and exclude patterns for a backup, any excluded files or directories under the included directories will not be backed up. If the excluded directories are not found in any of the included directories, the exclude specification will have no effect for the backup.