Folder exclusions on CIFS share

Davef2102

Active Newcomer
Joined
Mar 25, 2020
Messages
6
Reaction score
0
Points
0
PREDATAR Control23

Hi,

I'm having some issues with TSM folder exclusions and am reaching out for some help.

I have many folders in CIFS shares on \\volume\sharename\folders.EXCLUDE

I want to tell TSM to exclude all folders on this share with the foldername *.exclude

ive tried various iterations of EXCLUDE.DIR "\\volume\...\.DONOTUSE"

This doesnt seem to work. Would anyone be able to assist?

Thanks for any support.
 
PREDATAR Control23

The filespace or filesystem is the full share name. So your exclude would need to be:
Code:
exclude.dir \\hostname\sharename\...\directory
 
PREDATAR Control23

Hi!

Thanks for the quick reply.

THe problem is I have many shares on this volume. I was hoping to find a statement that would allow me to parse them all in one command without having to manually add the sharename.

eg exclude.dir \\hostname\*\<alldirectorywith.excludesuffix>

I just tried
exclude.dir \\hostname\sharename\.exclude and it didnt work
 
PREDATAR Control23

In the manual, the examples put the path in double-quotes, but not sure it's needed unless there's spaces:

Also, you mention a suffix. Do you want to exclude directories named ".exclude" or directories that end in "*.exclude"? And do you want to exclude them regardless in the root or in a subdirectory?


exclude.dir \\hostname\sharename\.exclude and it didnt work
That will only exclude a directory named ".exclude" in the root of the share.

This will exclude all directories that end in ".exclude" in the root of the share:
Code:
exclude.dir "\\hostname\sharename\*.exclude"

This will exclude all directories that end in ".exclude" regardless if in the root or a subdirectory:
Code:
exclude.dir "\\hostname\sharename\...\*.exclude"

And I tested wildcarding the sharename and this below worked too:
Code:
exclude.dir \\hostname\...\...\*.exclude
 
Top