Spotlight “Privacy” and wildcards

spotlight

I would like to have Mac Spotlight avoid indexing volumes with the name prefix of "backup". As in "backupA", "backupB". and "backupXYZ123". Is there any way to use wildcard in Spotlight Privacy? As in, don't index "backup*"?

Now, as far as I can tell, Spotlight Privacy doesn't let to text-edit the names of things it isn't supposed to index. So it isn't even obvious how to specify "backup*".

I know you can use metacharacters in Spotlight searches, but I'd like to use them in Spotlight Privacy.

Best Answer

You probably need some sort of script that monitors, when you create new "backupxy" to run the

mdutil and tell spotlight not to index it.