All Posts by Date or last 15, 30, 90 or 180 days.
also by Lloyd: diglloyd.com photography and WindInMyFace.com

Thank you for buying via links and ads on this site,
which earn me advertising fees or commissions.
As an Amazon Associate I earn from qualifying purchases.

Other World Computing...
B&H Photo...
Amazon
As an Amazon Associate I earn from qualifying purchases.
Upgrade the memory of your 2020 iMac up to 128GB
Upgrade the memory of your 2020 iMac up to 128GB

How macOS Can Cause Data Loss: Spotlight Chooses on Backup (Clone) Volumes, Which User then Works on... Later Wiped Out by Backup

Yesterday I was writing some server code, but I had to run out for an errand. So I started a clone backup and left.

When I returned, I found my code was gone. I was baffled... what the hell happened?

It turns out that I had added a new backup drive, that macOS Spotlight had indexed that backup, and when I opened my source code files, Spotlight decided that instead of using the volume on which my original code resided, Spotlight would just willy-nilly show me files off the backup drive. So I had been editing my code on the backup drive.

The backup I had started had promptly wiped out all my work.

I’ve long loathed the “index by default” approach of Spotlight. Now I have a serious reason to dislike it—and this is not the first time I have suffered—today I spent half an hour debugging code... once again that was on my backup drive and therefore not compiling. Once I figured that out, I took the backup drives out of the Spotlight indexing but the damage had been done yet again (this time, my wasted time).

I don’t know any foolproof way to not encounter this nasty bug yet again—it’s a manual operation to remember to exclude a volume when adding or erasing one. A shell script using mdutil would work, if/whenI get time to do that.

View all handpicked deals...

Sony X85J 75" Class HDR 4K UHD Smart LED TV
$1798 $1298
SAVE $500

diglloyd.com | Terms of Use | PRIVACY POLICY
Contact | About Lloyd Chambers | Consulting | Photo Tours
Mailing Lists | RSS Feeds | Twitter
Copyright © 2020 diglloyd Inc, all rights reserved.
Display info: __RETINA_INFO_STATUS__