scripts icon indicating copy to clipboard operation
scripts copied to clipboard

how to handle the dir-cache-time with cron

Open Antexa opened this issue 7 years ago • 2 comments

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:

Antexa avatar Apr 28 '17 14:04 Antexa

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

ajkis avatar Apr 29 '17 15:04 ajkis

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

  1. 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.

ajkis avatar Apr 29 '17 17:04 ajkis