Question / complaint : How to stop Searchlight from indexing TimeMachine snapshots?

Apple needs to gives us mortal users a way to stop Spotlight indexing for TimeMachine backups. By mortal, I mean users who cannot afford 20 TB SSDs and who rely on ordinary USB spinning disks for backups. I mention this because every reindexing creates constant chatter for this drive. And apparently, it needs to completely reindex *every snapshot* on *every day*. One can see that it's doing this by running the "mount" utility, for instance, to see that dozens of snapshots have been mounted. The "lsof" utility can be used to verify that "mdsync" and "mds" are hard at work doing ... stuff.


This question has been asked and sort of answered here and here, but the answers no longer work in Monterey. Instead, when we try to add a Volume to be excluded from indexing using the Spotlight privacy settings, we get "“XXXX” is a Time Machine backup folder. You cannot add it to the privacy list." If we do it on the command line via mdutil, It says it succeeded, but in fact, status shows that the volume is still marked for indexing.


It's also frustrating that there is no built-in utility to modify the TimeMachine backup frequency -- like there was in the past (I was on El Capitan for 6 years).


My question also raises the meta-question: Do Mac developers ever use the technologies they create? Surely they would have noticed how annoying this becomes to an end-user? Or do they assume everyone has 20 TB SSDs like they do?


And if any such dev from Apple is reading this: consider incrementalizing the indexing of snapshot, in addition to being able to disable them. By incrementalize, I mean, don't reindex files that aren't part of the most recent snapshot. It appears the snapshot is mounted, and completely reindex, which (I'm guessing) requires all underlying snapshots to also be mounted and indexed.

MacBook Pro Apple Silicon

Posted on Nov 28, 2022 03:45 PM

Reply
Question marked as Top-ranking reply

Posted on Nov 29, 2022 03:53 AM

My backup is on a spinning HDD and I don’t notice much of anything going on. I guess my drive is quiet compared to yours.

I've a laptop and external USB drive. It's going to make noise.


Could be my ears are more sensitive :) I live in the countryside and had to spend 300$ on suppressing the noise from my refrigerator when the replacement compressor from the mfr proved to be too noisy.


Anyway, the activity ( "watch lsof ..." )indicates that spotlight is not simply indexing the files, but the *content* of the files inside TimeMachine, which is absolutely silly IMO.


What's even more ironic is that when using TimeMachine to search for files that have been backed up *and indexed* the disk goes wild. It's as if TimeMachine doesn't even bother using the index that is there.


Similar questions

10 replies
Question marked as Top-ranking reply

Nov 29, 2022 03:53 AM in response to Barney-15E

My backup is on a spinning HDD and I don’t notice much of anything going on. I guess my drive is quiet compared to yours.

I've a laptop and external USB drive. It's going to make noise.


Could be my ears are more sensitive :) I live in the countryside and had to spend 300$ on suppressing the noise from my refrigerator when the replacement compressor from the mfr proved to be too noisy.


Anyway, the activity ( "watch lsof ..." )indicates that spotlight is not simply indexing the files, but the *content* of the files inside TimeMachine, which is absolutely silly IMO.


What's even more ironic is that when using TimeMachine to search for files that have been backed up *and indexed* the disk goes wild. It's as if TimeMachine doesn't even bother using the index that is there.


Nov 29, 2022 07:04 AM in response to otheus

otheus wrote:

Nope. Brand new 12 TB disk.

Spotlight seems to insist on indexing the contents of the files, not just the directories and filenames. That's simply silly.

Then you will need to return the hard drive for one that works.


Spotlight works the way spotlight works. It isn't a problem for anyone else. My hard drive is doing a backup right now. It is 73% done with 2 GB copied. Wait, that took too long to type. I can't even tap out 98%. It's done. And now totally quiet.


PS: My hard drive is a Thunderbolt 2 enclosure that is maybe 10 years old or more. It must be on its 3rd internal replacement though. Internally it is a WD 7200 rpm 4 TB, maybe 4 years old?


Nov 30, 2022 07:52 AM in response to otheus

otheus wrote:

@etresoft Please stop trolling. The problem isn't the hard drive: it's MacOS's insistence that Spotlight must reindex snapshotted volumes for no benefit whatsoever.

This is a user-to-user technical support forum for Apple products. If you want to do your own research, post rants, and attack people who try to help, you would probably find a better user experience on a social media site like Twitter.

Nov 30, 2022 08:10 PM in response to otheus

@vikingOSX: on whose authority are you stating this? And if you know, why is this true? (Hint: I can prove that it is not).

Why not just prove it, then? Why the games?

Apple stated it was so sometime around OS X Lion. It would certainly be impossible to search for a file to restore if it wasn't indexed. I guess you could jump into the command line and use find, but then what?

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Question / complaint : How to stop Searchlight from indexing TimeMachine snapshots?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.