4
2
I have a strange question, and i am not sure this is something doable at all, thats why i am asking it to the SuperUser :)
So, imagine that you have your filesystem with some mount points for additional partitions.
say something like
/drives/driveA/partitionA /drives/driveA/partitionB /drives/driveB/partitionA ... etc.
now, if all these partitions are mounted in their respective mountpoints, running updatedb would index all the content in their filesystem. Good.
Now, I am trying to set up a sort of low consumption, low hard disk wearing file server, where i would like to use automount, where i would like to have files indexed, but where i dont want to run the indexing on these additional drives every day.
So what i want to achieve is to run updatedb in such a way that some paths (in my case those paths above) could be excluded from the indexing, BUT at the same time without trashing the previous content indexed for those paths.
i see that updatedb has several "pruning" options, that let us exclude certain paths from the indexing process. But this also implies discarding all the content information related to those paths. Instead i would like to exclude certain paths, retaining what has been previously already indexed in those paths.
Does anyone have an idea how to achieve this with mlocate, or what other tool to use for this? thanks
Thanks, i was hoping in a similar option, actually, and i did not notice i could do something like this! :) – Pa_ – 2012-11-30T15:00:22.080