It checks the API for changes to the folder and does a revert when there are changes. Replace the host, API key and folder ID as appropriate. It prevents mistakes at the individual client level from propagating onwards while still allowing the individual user control over their files.įootnote, sort of: if you really want to immediately undo any local changes, stick this script in your crontab to run every few minutes. eg: playlist edits/creation, temporary bookmark data, modifications to keyfiles. We think receive only folders will work well for people using Syncthing as a component in their content distribution or backup solution. Folders like music, ebooks, keys are maintained in a master folder on a central server, but some associated info would benefit from the ability to get selectively assimilated into the master data.
![syncthing master folder syncthing master folder](https://forum.syncthing.net/uploads/default/original/2X/1/1c1969cb07730ca4a3a1f18761f226337ff2deaf.png)
It will however avoid sending the changes to the rest of the Syncthing cluster, and it gives the user an option to undo local changes manually. In short, a receive only folder will not prevent the user on that device from making changes to files and it won’t automatically, immediately, undo any such changes. This is intentional because we’re not really sure how it will be used in practice, and it allows us room for further enhancement in the future.
![syncthing master folder syncthing master folder](https://www.atoft.dev/images/posts/syncthing/gnome-calendar.png)
The current implementation is sort of the “minimum viable” one - as little as possible to be able to check the feature checkbox. First and foremost we do not want to automatically undo changes a user makes to their files. There are many different expectations on how this type of folder should work and some of them have been incompatible with Syncthing core values. To make sure the system packages do not take preference over those in this repository, you need to adjust the priority/preference. This has been an oft requested feature for quite some time but nailing down the exact mechanics of how it was supposed to work has been a bit tricky. Distribution Package Preferred Over This Version. This makes the set of folder types the complete trio - send only, receive only, and the default send-plus-receive.
![syncthing master folder syncthing master folder](https://forum.syncthing.net/uploads/default/original/2X/4/49c35d08667bb61e8496151c6465f8124312145c.png)
In Syncthing v0.14.50 we’re adding the initial implementation of “receive only” folder types.