extremq.com

Syncthing is awesome

Do you wish you had a folder that is synchronized with all of your devices, even your phone? Do you have sensitive data and you do not trust third parties to synchronize it for you? Well, Syncthing is your answer.

Syncing, but no server

I wanted to synchronize the notes I take with Logseq. I write on my Android phone, on my laptop and on my desktop PC. The solution most easibly accessible to everyone is to use Logseq's paid synchronization feature, which costs at least 5 USD. It is a good offer, but I did not want yet another subscription. Then, I thought about using Git, which is very good to keep a history of changes, but I still had to share my notes with some server—there must be some computer available 24/7 to serve me my notes. I would've chosen Github, but it doesn't use end-to-end encryption, so I would have to trust their word that they will not analyze my personal thoughts. Also, Git on a phone is not a good experience, and you need to constantly commit and push changes to the server.

After some research, I stumbled upon Syncthing. It transfers any update from one device to the others directly by establishing an encrypted tunnel with them. However, let's say I don't have my laptop with me right now, and I powered up my desktop PC and I want my notes which I wrote on my laptop. Unfortunately, that won't work—you need at least one device running in order to sync from (and I do not enjoy leaving devices powered on). The superhero in this story is my Android phone—it is an always-on device capable of running Syncthing without a problem, and I actually needed to sync the notes on my phone anyway. Because the phone is always running, you will always have a server ready to share the latest version of notes with any device that needs it. It is also seamless, unlike Github, because it constantly checks your files and sends them when it notices a difference. Syncthing was very easy to setup and it never failed me.

Go on, give Syncthing a shot, I bet you will have a use for it. A popular usecase is syncing photos from your phone to a computer. wink wink

#blog #iot #tools