1 .\" A man page for updatedb.conf. -*- nroff -*-
3 .\" Copyright (C) 2005, 2007, 2008 Red Hat, Inc. All rights reserved.
5 .\" This copyrighted material is made available to anyone wishing to use,
6 .\" modify, copy, or redistribute it subject to the terms and conditions of the
7 .\" GNU General Public License v.2.
9 .\" This program is distributed in the hope that it will be useful, but WITHOUT
10 .\" ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 .\" FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
14 .\" You should have received a copy of the GNU General Public License along
15 .\" with this program; if not, write to the Free Software Foundation, Inc.,
16 .\" 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18 .\" Author: Miloslav Trmac <mitr@redhat.com>
19 .TH updatedb.conf 5 "Oct 2020" plocate
22 @updatedb_conf@ \- a configuration file for updatedb(8)
27 Blank lines are ignored.
30 character outside of a quoted string starts a comment
31 extending until end of line.
33 Other lines must be of the following form:
40 White space between tokens is ignored.
42 is an alphanumeric string which does not start with a digit.
44 can contain any character except for \fB\(dq\fR.
45 No escape mechanism is supported within
47 and there is no way to write
49 spanning more than one line.
53 values are considered an error.
54 The defined variables are:
58 A whitespace-separated list of file system types (as used in \fB/etc/mtab\fR)
59 which should not be scanned by
61 The file system type matching is case-insensitive. By default, no file system
64 When scanning a file system is skipped,
65 all file systems mounted in the subtree are skipped too,
66 even if their type does not match any entry in \fBPRUNEFS\fR.
70 A whitespace-separated list of directory names (without paths) which should not
73 By default, no directory names are skipped.
75 Note that only directories can be specified, and no pattern mechanism (e.g.
80 A whitespace-separated list of path names of directories which should not be
83 Each path name must be exactly in the form
84 in which the directory would be reported by
87 By default, no paths are skipped.
90 \fBPRUNE_BIND_MOUNTS\fR
91 One of the strings \fB0\fR, \fBno\fR, \fB1\fR or \fByes\fR.
94 is \fB1\fR or \fByes\fR,
95 bind mounts are not scanned by
97 All file systems mounted in the subtree of a bind mount are skipped as well,
98 even if they are not bind mounts.
99 As an exception, bind mounts of a directory on itself are not skipped.
100 Note that Btrfs subvolume mounts are handled internally in the kernel
102 .BR btrfs-subvolume (8)),
103 and thus, may get skipped if you have also mounted the filesystem root itself.
104 To counteract this, make your root directory a Btrfs subvolume, too.
106 By default, bind mounts are not skipped.
109 When a directory is matched by \fBPRUNEFS\fR, \fBPRUNENAMES\fR or
112 does not scan the contents of the directory.
113 The path of the directory itself is, however, entered in the created database.
116 is in \fBPRUNEPATHS\fR,
118 will not show any files stored in \fI/tmp\fR,
122 This behavior differs from traditional
128 implementations \fBPRUNEPATHS\fR can be used to exclude non-directory files.
129 This is not the case in this implementation.
132 is a shell script in some implementations,
133 which allows much more flexibility in defining the variables.
134 Equivalent functionality can be achieved by using the command-line options
139 Miloslav Trmac <mitr@redhat.com>