scripts
scripts copied to clipboard
how to handle the dir-cache-time with cron
May have already been mentioned but how to manage the dir-cache-time with the script plexupdatenew.cron
By default, the folder cache time is set to 5 min. The trigger time (CRON side) may be after the file creation date (server copy side). This will not trigger scanning of the library.
Did u get the point ? :fearful:
That can be a problem, i made a lot of changes in the script now to check for files now https://github.com/ajkis/scripts/blob/master/plex/plexupdatenewfolders.sh
If you want to be completely on safe side when it comes to scans then you should use my other 2 scripts
First one will generate list of folders before doing rclone upload
- https://github.com/ajkis/scripts/blob/master/plex/plexgeneratefolderlist.sh
Second one will refresh only folders previously generated with script 1. 2 https://github.com/ajkis/scripts/blob/master/plex/plexrefreshfolderlist.sh.