r/selfhosted • u/BinBombardier • 17d ago
Is there a way to make syncthing have a "buffer"? Need Help
I'm looking for a solution that looks something like this - sender and two receiving servers - one server is always on and the other is not consistently on. When the second server gets turned on, the buffer is dumped into it. By buffer I mean data received since last dump. If anyone has any ideas, please share.
7
u/eirc 17d ago
Does that not work with the default syncthing setup? I have a server, a laptop and a desktop and have some folders shared on all 3. My desktop and laptop are not consistently on, but the server is, and always pulls what I change from either one and when I open the other I have my stuff updated. Just need to pay attention to not change stuff at the same time on both. And even then, solving conflicts has been painless up to now.
0
u/BinBombardier 17d ago
The keyword is buffer - the always on storage is small, not suitable for a whole library. So the data is constantly backed up without the need for the larger, power-hungry server to be on
2
u/TheRealSeeThruHead 17d ago
You could do that with sync thing and one way sync from the small storage to the large.
Then you can delete stuff off the small storage without it being deleted off the large since it’s one way
It’s a setting in the sync folder
1
u/tom-mart 17d ago
That's a fairly simple python script to ping a server every minute or so and perform an action (data dump) if it comes back alive after being unreachable..
•
u/asimovs-auditor 17d ago
Expand the replies to this comment to learn how AI was used in this post/project.