Revert local change

I have recently begun using Syncthing and am very please with the application, I have a however a question that I haven’t been able to find any answer to. I am trying to sync from a central fileshare to several remote offices. It is a one way sync and the remote offices fileshare should always be identical to the central fileshare.

When I do a change in the fileshare on the remote offices, fx. delete a file or add a folder, I have to click “Revert Local Changes” to get the fileshare back to 100% in sync with the central fileshare.

Is there a way to automate “Revert Local Changes” or do something else to handle it in a smart way, instead of logging in to each remote server?

You could use the API (POST /rest/db/revert — Syncthing documentation) to this remotely.

Ideally, use permissions on the fileshares to prevent unauthorized modifications. This is better than relying on Syncthing to automatically undo them.

1 Like