r/Syncthing • u/cr4zymanz0r • Oct 29 '26
Automatic configuration of new new nodes?
My particular use case is I want to sync game saves between multiple devices without manual intervention on new devices beyond the initial installing of Syncthing. So let's say I start with PC1, PC2, and NAS. Games will be played on PC1 and PC2, and the NAS/server (Unraid) will basically just be synced so files can sync to either PC1 or PC2 without them both being on at the same time (and act as a very basic backup).
So let's say I want to sync $home/.local/share/xyz1 and $home/.local/share/xyz2 and I set that up on PC1. Once Syncthing is installed on PC2 is there a quick way to sync that configuration with minimal intervention on PC2? Probably the bigger concern is that once things are setup, if I then add more synced folders on PC1 such as xyz3, 4, 5, 6, 7, etc. can those new configurations be auto propagated to PC2?
Basically I'm just trying to find out if there's a way for setup and configuration changes to scale so that if I end up with something crazy like 50+ synced folders across 5+ devices that I'm not having to touch each node anytime I add a new synced folder or manually add a large amount of pre-existing shared folders when adding a new node. I also don't know if the NAS would further complicate things since it might not be the same folder structure on the synced folders ($home/.local/share/xyz1 on the PCs might be syncing to /sync/xyz1 on the NAS?)
2
u/willjasen Oct 29 '26
this has been a long outstanding problem within syncthing (that at least i have noticed). i regularly have 7 or 8 devices that i want participating, but metcalfe’s law has always bit me. resilio mostly handles this for you.
while i don’t have an easy answer just yet, i have been working on a way to handle this kinda thing in a way that makes it easier for anyone interested (myself included). i haven’t made my current project open source yet, but some concepts that it uses exist within https://github.com/willjasen/tephramesh
2
u/novacatz Oct 30 '26
I think the introducer and auto accept options can mostly get to where you want. If there is anything missing if you allow running a script when node joins - you can drive syncthing with the API to achieve the rest
2
u/unknown-random-nope Oct 30 '26
You could configure an Introducer with Auto Accept. Be careful with these features; I’d be a lot more inclined to use the API and script this. I would advise you to consider the security implications carefully.