How to exclude some external volumes from Spotlight
I want to exclude my external backups (Carbon Copy Cloner 5) from Spotlight to avoid the common situation that I cannot eject the disk after the backup is done because the disk is "busy". Also faster.
I can exclude one volume from a two-volume disk in the usual way in Preferences Privacy. However the second volume gives me an error. For another disk, both volumes fail.
I used mdutil to get the following where disk 1 is in the Privacy list, but not sure how to proceed.
Michel-iMac:~ maintainer$ mdutil -s /Volumes/Backup\ 1\ -\ Data
/System/Volumes/Data/Volumes/Backup 1 - Data:
Indexing and searching disabled.
Michel-iMac:~ maintainer$ mdutil -s /Volumes/Backup\ 3\ -\ Data
/System/Volumes/Data/Volumes/Backup 3 - Data:
Error: unknown indexing state.
The '-i off' or '-E' options fail with the same error message.