I try to exclude my TimeMachine-backup-storage from being indexed by spotlight and got some weird behaviour. The backup storage is a Time Capsule.
To exclude it, i did the following in terminal:
sudo mdutil -i off /Volumes/Time\ Machine\ Backups
/Volumes/Time Machine Backups: 2016-04-25 11:05:25.036 mdutil[2896:441987] mdutil disabling Spotlight: /Volumes/Time Machine Backups -> kMDConfigSearchLevelFSSearchOnly Indexing and searching disabled.
Seems pretty fine. But when switching spotlight-indexing from on to off, the following lines will be printed out indicating, that the Time Machine subfolder for my machine will still be enabled for being indexed:
(The spoton-command is an alias for "sudo mdutil -a -i on")
However, i tried to exclude also explicitly the subfolder "Backups.backupdb":
sudo mdutil -i off /Volumes/Time\ Machine\ Backups/Backups.backupdb
The weird output is:
$ sudo mdutil -i off /Volumes/Time\ Machine\ Backups/Backups.backupdb /Volumes/Time Machine Backups/Backups.backupdb: 2016-04-25 11:05:28.815 mdutil[2914:442054] mdutil disabling Spotlight: /Volumes/Time Machine Backups/Backups.backupdb -> kMDConfigSearchLevelFSSearchOnly Indexing enabled.
Please note: "Indexing enabled".
In preferences pane of Spotlight one can see, that the Time Machine Drive is excluded as expected:
Is the output just a "wrong" output since the parent folder is disabled for spotlight? Or is the spotlight index essentially for TimeMachine to work properly? And if both questions will be answered with "No", how to finally stop spotlight from index my time machine backups?