08-17-2020 08:47 AM - edited 08-17-2020 10:27 AM
I am testing out policies and am having issues with SET EXCLUDES and wildcards.
I have been able to get them to work seperately, but have been unable to combine them in the same policy.
This is a rough example of what I am aiming for. I want the wildcards so we are ensuring we capture all folders, however one in particular is massive and will have its own policy.
The storage is a Netapp.
08-18-2020 12:48 AM
The tech article says "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"
The directory you want to exclude - is it in a-f or in the g-m folders ?
08-18-2020 01:42 AM
For my test it will be in the a-f folder selection. So my order should actually be:
I will re-test this now, thanks
08-18-2020 04:16 AM
Having re-tested this it is still picking up the directory I want excluded.
08-18-2020 06:21 AM - edited 08-18-2020 06:24 AM
Are you using full path names ?
I would say you need to specify the full path to the directory, to be excluded
SET EXCLUDE= /General/it_software/a/bigdir
Specifies files or directories that are excluded when backing up data. The exclude list is a comma-separated list of file or directory names. If the name of a file or directory matches one of the names in the list, it is excluded from the backup. The following are rules for specifying names in the exclude list:
So if you don't specify the full path to the directory to exclude it won't match.
08-18-2020 07:34 AM
I have just tried what you suggested. My policy now looks like:
But the first stream is still picking up the excluded directory.
08-19-2020 12:29 AM - edited 08-19-2020 01:28 AM
Humm, I am running out of options :)
Last recommendation, enable NDMP logging on the Netapp device to see why the exclude is being ignored. In a NDMP setup Netbackup merely act like a pipe to store data than actually reading the data off the Netapp. There may be reason as why Netapp is ignoring the exclude.
How to enable NDMP loggin can be found in the Netapp documentation.