I'm running the following command:
updatedb -l 0 -o mydatabase.db -U /usr/myfiles1/
locate -d mydatabase.db ""
The "" are to show all the contents of mydatabase.db. However, I'm missing files that I'd expect to see in /myfiles1/. 'locate' doesn't seem to be recursing down through the directories. I've checked permissions, but it seems random as to what directories 'locate' chooses to recurse down into.
If I 'cd' to 'myfiles1' and then run 'updatedb', it recurses down into this directory and its subdirectories and generates all the files contained in /myfiles1/.