08-17-2020 08:47 AM - edited 08-17-2020 10:27 AM
Hi,
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.
NEW_STREAM
/General/it_software/[a-fA-F]*
SET EXCLUDE=DirectoryName
NEW_STREAM
/General/it_software/[g-mG-M]*
NEW_STREAM
/General/it_software/[n-zN-Z]*
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.
thanks
08-18-2020 12:48 AM
hi @cayde-6
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:
NEW_STREAM
SET EXCLUDE=DirectoryName
/General/it_software/[a-fA-F]*
NEW_STREAM
/General/it_software/[g-mG-M]*
NEW_STREAM
/General/it_software/[n-zN-Z]*
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 ?
SET EXCLUDE=bigdir
I would say you need to specify the full path to the directory, to be excluded
SET EXCLUDE= /General/it_software/a/bigdir
Netapp says:
https://library.netapp.com/ecmdocs/ECMP1196874/html/GUID-D66AA1AE-34D3-4A39-98A0-CD306876DA21.html
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
Thanks Nicolai,
I have just tried what you suggested. My policy now looks like:
NEW_STREAM
SET EXCLUDE=/General/it_software/EXCLUDED_DIR
/General/it_software/[a-fA-F]*
NEW_STREAM
/General/it_software/[g-mG-M]*
NEW_STREAM
/General/it_software/[n-zN-Z]*
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.