How can I view updatedb database content, and then exclude certain files/paths?

Posted by rubo77 on Server Fault See other posts from Server Fault or by rubo77
Published on 2012-11-30T23:10:10Z Indexed on 2012/12/01 11:08 UTC
Read the original article Hit count: 258

Filed under:

The updatedb database on my debian server is quite slow.

where is the database located and how can I view its content and find out if there are some paths with useless stuff, that I could add to the prunepaths?

my /etc/updatedb.conf looks like this:

...
# filesystems which are pruned from updatedb database
PRUNEFS="NFS nfs nfs4 afs binfmt_misc proc smbfs autofs iso9660 ncpfs coda devpts ftpfs devfs mfs shfs sysfs cifs lustre_lite tmpfs usbfs udf"
export PRUNEFS
# paths which are pruned from updatedb database
PRUNEPATHS="/tmp /usr/tmp /var/tmp /afs /amd /alex /var/spool /sfs /media /var/backups/rsnapshot /var/mod_pagespeed/"
...

and how can I prune all paths that contain */.git/* and */.svn/* ?

© Server Fault or respective owner

Related posts about locate