Page 1 of 1

"Date Added is after Date Last Matched" issues

PostPosted: Sat Jun 01, 2019 8:27 pm
by jonxfm
I have a script setup here that works perfectly most of the time, but every 3 months or so seems to get confused.

Code: Select all
Folder A: 

ignore syncthing
    - if name contains 'syncthing',
    do the following: ignore

only match once
   - if date added is after specific date "3/6/2019, 6:54 pm
   - if date added is after date last matched
   do the following: copy to "/path/to/B" OPTIONS: if file exists, do not copy the file, do not copy a duplicate, copy folder structure from monitored folder

folder contents
    - if kind is folder
   do the following: run rules on folder contents.


The point of this is that I have a big mirrored sync between a folder on my server and my local machine, It's hard for me to tell which of the folders have been sorted locally, so new additions copy to folder B, where I delete them as I sort them. This works perfectly fine most of the time, but every 3 months or so it starts copying folders that it's already matched before. If I left this alone long enough It seems it would copy the entire folder A to folder B, so I have to kill the 'hazelworker' process, update the 'specific date' and re-run the rules. I'm pretty sure this error is caused by power outages, which unmount the external drive where these folders are.

Any idea why this might be happening?

Re: "Date Added is after Date Last Matched" issues

PostPosted: Mon Jun 03, 2019 8:55 am
by Mr_Noodle
Is it possible the files are matching a different rule temporarily? If so, that would update the date last matched. If it then goes back to matching that rule, it will end up running the actions again.

Re: "Date Added is after Date Last Matched" issues

PostPosted: Thu Jun 06, 2019 8:55 pm
by jonxfm
Mr_Noodle wrote:Is it possible the files are matching a different rule temporarily? If so, that would update the date last matched. If it then goes back to matching that rule, it will end up running the actions again.


hmm within folder A, those are the only 3 rules. Once they hit 'B', I have another rule that just runs a script removing all ".syncthing" files, since the 'A' rule doesn't seem to catch them all.

Re: "Date Added is after Date Last Matched" issues

PostPosted: Fri Jun 07, 2019 10:03 am
by Mr_Noodle
Nonetheless, all it takes is matching one of the other rules, or matching none of them, to trigger this behavior.