Thanks for explanation, but my question was targeted a little differently… So to rephrase is there a way when each or any file is successfully synced to run custom script or some program function to mark file as archived…
You can use the event rest api in a script to achieve that, see item started/finished events here: https://docs.syncthing.net/dev/events.html#event-types
You might also be able to “abuse” the external versioner for this purpose (no guarantees), if you don’t already use versioning.