I'd like to use mlocate on my Ubuntu server, but only to index certain directories (e.g.
/data, but not everything under
/). However, mlocate's standard configuration works the opposite way; you specify the paths you want to remove (with
Is there any easy way to achieve this, or any similar utility that will do what I want? (note: it should maintain an index like
find is not acceptable, for example) Thanks.