ajkis / scripts

Ajki's scripts & guides
https://ajkis.github.io/scripts/
324 stars 91 forks source link

how to handle the dir-cache-time with cron #25

Open Antexa opened 7 years ago

Antexa commented 7 years ago

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:

ajkis commented 7 years ago

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 commented 7 years ago

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.