I'm trying to add "/Volumes" as an exclusion but am getting the error "Could not write domain". I've tried adding "Terminal" and "defaults" to the full disk access permissions to no avail. I'm guessing at this point, programmatic modification of that file via script/defaults is going to require disabling SIP, which isn't an option.
Does anyone know of any other options to programmatically add exclusions to spotlight?
