oblong wrote: ⤴Mon Jul 23, 2018 9:11 pm
As I understand it,
mlocate
keeps the database
/var/lib/mlocate/mlocate.db
as an index to allow the system to find files.
Fair point about the timeshift snapshots but first of all...
Not "the system" as such but only the command line tool
(m)locate
. And that is to say that if you, as I, do not in fact use
locate
you may as well disable the updatedb run and delete the database outright to more fundamentally "speed up the indexing process and reduce the size of mlocate.db":
Code: Select all
sudo chmod -x /etc/cron.daily/mlocate
sudo rm /var/lib/mlocate/mlocate.db
Re-enabling is simply
Code: Select all
sudo updatedb
sudo chmod +x /etc/cron.daily/mlocate
I have personally likely never experienced wanting to know the location of a file I did know the name of other than in those situations handled by
which
or maybe
dpkg -L
already, or when doing/creating something
now for which
locate
does't help anyway, it needing to wait for an updatedb run. And that's while I am a command line user: for the majority of Linux and certainly Mint users the locate/updatedb system is a complete waste of resources.
That said: if someone
does care for the daily updatedb runs excluding /timeshift does probably make sense in and of itself. You may wish to message forum admin xenopeek; he probably knows how to most effectively suggest this to the Mint crew.