Mac OS X
Q: How to retain the locate /var/db/locate.database for removable external drive
I just ran sudo /usr/libexec/locate.updatedb with two external drives mounted. I think when the command is next run by the weekly system update, and the drives are not mounted, then the data for those drives will be deleted. I suppose I could copy /var/db/locate.database to a backup file, and then use the locate -d option to search for a file. But is there a better way to handle this?
Maybe I should be using mdfind and mdutil to handle this, but I haven't understood about external drives for that either.
Thanks for helping.
Boyd
MacBook Pro with Retina display, OS X Yosemite (10.10.5)
Posted on Jun 22, 2016 6:35 PM