Really short script to index new media files on a synology.
-
Change as you want the target directory at line 19. (/volume1/video)
-
Change the number of days to check at line 19. (-ctime -2)
-
Change targeted extensions at line 19. (avi\|mkv\|mp4\)
-
Add to the Crontab
$ sudo vi /etc/crontab
-
Add run of the script every 2 minutes
*/2 * * * * root sh /path/to/indexing.sh
-
Restart Crontab
$ synoservice -restart crond