bug-findutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to specify mulitple source directories in updatedb?


From: James Youngman
Subject: Re: How to specify mulitple source directories in updatedb?
Date: Sat, 20 Apr 2013 14:32:01 +0100

On Sun, Feb 13, 2011 at 5:52 PM, Peng Yu <address@hidden> wrote:
> Hi,
>
> The manpage of updatedb only shows the case when one source directory
> is used. But I have multiple directories need to be indexed. Is there
> a way to do so in updatedb?
>
> updatedb -l 0 -o db_file -U source_directory

I believe the simplest way to do this is to build one locate database
for each top-level directory (you should be able to run two instances
of updatedb in parallel) and set $LOCATE_PATH to a string which
includes both databases.

An alternative would be to start updatedb at a start point above both
trees, and configure it to prune out all the other directories, but
that's probably cumbersome.

James.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]