"Date Added is after Date Last Matched" issues

Get help. Get answers. Let others lend you a hand.

Moderator: Mr_Noodle

"Date Added is after Date Last Matched" issues 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?
jonxfm
 
Posts: 7
Joined: Fri May 04, 2018 5:51 pm

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.
Mr_Noodle
Site Admin
 
Posts: 7865
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

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.
jonxfm
 
Posts: 7
Joined: Fri May 04, 2018 5:51 pm

Nonetheless, all it takes is matching one of the other rules, or matching none of them, to trigger this behavior.
Mr_Noodle
Site Admin
 
Posts: 7865
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Support