I have a couple machines which are accessed by other individuals. While I do want all machines to receive all changes, I do NOT want any changes made on these specific machines to filter back to the rest of the nodes. A “backup TO here” scenario. How can I do this?
Currently, you can’t. It’s
issue 62, although it’s a bit vaguely worded.
This use case is not presently handled by Syncthing. Look thru the forums, this topic has been discussed before.
In a 2 device cluster, you can set up device A as “Master”, and changes made on device B will not come back to A. This setting is repo specific, in the repository edit screen.
However, in a more complicated cluster like you described, you would require more than 1 “Master” - and Master repos will not update each other.
But I think you actually can if you link the two masters (with none as a master) and then add another “folder pair” with one of the masters and the slave. See more here:
Three node syncthing with two masters:
But I think there is a relatively simple solution. Suppose you want changes to be synced two-way between A and B, but you want C to accept all changes and not propagate any (so A and B would both be masters, and C would be what other software calls read-only nodes).
Suppose the things you want synced live in directory ~/D1 (at least in machine A).
In A add two folders (I mean, “Folders” in the sense of the user interface of ST, not in the “directory of a filesystem” sense)
both of them use as Folder Path ~/D1, but in A-one-way-C, “Folder master” is checked.
Now, in both B and C accept the creation of the new folder, use ~/D1 (or whatever) in your filesystem, and you are done.
I just tried it, and it works fine. The key idea is that syncthing has no trouble using the same directory in different “Folders”, so you can share it in different ways (as “Master” and as non master).
This is not as simple as checking boxes for “read only”, etc, but it seems to work and is just fine (at least for small numbers of interconnected nodes).
P.S. You might also think about adding, in B, a
but this to me is confusing and when playing with it, it can lead to trouble. This makes sense: if you have just
it is unambiguous how changes can and cannot propagate. If you add B-one-way-C then it ain’t.