The updatedb database on my debian (squeeze) server is quite slow.
- where is the database located
- how can I view its content and find out if there are some paths with useless stuff, that I could add to the prunepaths?
- how can I prune all paths that contain
*/.git/*
,*/.svn/*
and similar? - why don't the files get excluded, I defined in
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/"
...
EDIT:
- The locate database is in
/var/cache/locate/locatedb
locate /
will list all files and directories in the database (I looked through the results by exporting it in a file:locate />/tmp/locatedb.txt
, download this txt-file and find large amount of useless stuff)