How can I view updatedb database content, and then exclude certain files/paths?
- by rubo77
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/* ?