cancel
Showing results for 
Search instead for 
Did you mean: 

Combining Excludes and Wildcards

cayde-6
Level 3

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

6 REPLIES 6

Nicolai
Moderator
Moderator
Partner    VIP   

hi @cayde-6 

https://www.veritas.com/support/en_US/article.100000504?profileURL=https%3A%2F%2Fvam-profile.veritas...

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 ?

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

Having re-tested this it is still picking up the directory I want excluded.

Nicolai
Moderator
Moderator
Partner    VIP   

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.

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.

Nicolai
Moderator
Moderator
Partner    VIP   

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.