I have set up a separate mlocate database to index a custom directory, it is updated by a cron task, but for some reason it does not index files created since the fist time the database was created. The indexed directory is located on a
cifs mount, but I have removed
Here is the command that runs hourly:
/usr/bin/updatedb -l0 -U /datadrive/data -o /tmp/locate.db
If I remove
/tmp/locate.db and run the updatedb command then all the files are indexed properly. If I run it again then files newer than the original
/tmp/locate.db are not indexed.
This runs on a Centos 7 VM in Azure and the
cifs mount is an
Azure Files share. It's mounted in
/etc/fstab as follows:
//my_storage.file.core.windows.net/my_files /datadrive cifs vers=3.0,username=my_username,password=my_password,dir_mode=0777,file_mode=0777 0 0
So the question is - how do I make it index new files?