Live data from Hacker News

Syncthing – a continuous file synchronization program

syncthing.net

221–230 of 233 posts

Re: Syncthing – a continuous file synchronization program

#221
post #44

Earlier quoted context omitted.

> Secondly, if you don’t know what you are doing, may be don’t create random config files and hope the software deals with it. This sounds like a variant of the old "you're holding it wrong" blurb. The problem you're commenting on actually describe a multitude of problems with the application, specially how it causes data loss if it's config happens to get corrupted. The comment about the need to back up data also se…

No, I wasn’t saying the thing about creating config files in the same vein as “you are holding it wrong^tm”. Any software would crap out if you manually give it wrong/empty config files - that is only reasonable. Sure, if you’re worried about the config file getting corrupted without user interference, that’s a bug. I’d also be pissed if I were the author of the project and someone complained by saying - “I deleted t…

I'm the author of that blog post. So,

- I did not use it as a backup system. Due to circumstance, my backups were borked and I was too busy/poor to fix them up. Syncthing was used to sync my passwords, Org mode notes, and a specific two-way sync folder with the phone. Importantly, the first two were read only, i.e. the phone only had read access. Regardless, stuff on the remote, i.e the computer were deleted.

- I don't blame Syncthing because I lost my stuff or I had no backups. I blame them however because their software failed destructively. It should of course fail when the config file is weird, but deleting files on two devices despite permissions only allowing readonly access is tho unacceptable. This is kinda equivalent to nginx deleting your htdocs because a symlink in sites-enabled was broken or /.../sites-enabled was a file instead of a folder. If you don't have a backup of htdocs, that's your fault, but that doesn't mean it's a sane way to fail. The best way is to panic and tell the user: "I'm not touching files before this is fixed". Even rm(1) in coreutils has this sort of precautions, not allowing you to run "rm /" willy nilly.

- I should admit that I don't really make that distinction very clear in the blog post itself tho. It was written with anger after the incident, so I was not as nuanced/clear as I could've been.

- The point of the blog post was to advice against relying on Syncthing and to point out that its failure modes were coded sloppily. Tbf it was more like a note to self because never had analytics on my website so I had no idea if anybody read them with any frequency. I've seen it be linked from a couple places recently tho, and I haven't changed my mind, partly because I haven't been keeping up after seeing attitude like https://github.com/syncthing/syncthing/issues/4345

Afterwards I did go back to using syncthing for a while to sync files b/w laptop&phone but confined to a specific share folder only. After that brief period I've been relying on KDE Connect to push files between a Linux laptop and an Android phone. I botched backups a couple more times tho, as the big banner on the website testifies to.

Re: Syncthing – a continuous file synchronization program

#222

Earlier quoted context omitted.

Since recent Android updates my termux setup hasn't been able to access other application's data. I use rsync via that for backing up content, it still works for things like camera output, but not things like the files & config from my podcast app. Though it turns out I've been negligent and not noticed the Play installed versions are no longer maintained, so they may have worked around whatever the issue is. I must…

I can confirm that the F-Droid version has fixed this issue a while ago.

Hmm. Removed and reinstalled from f-droid and android/data is still inaccessible. Will do a bit more research and see if there are known problems with it on my device...

Re: Syncthing – a continuous file synchronization program

#223

Earlier quoted context omitted.

Syncthing supports introducer devices. If you mark a device as introducer, you'll automatically add all devices the introducer knows to your list. So basically adding a new device to an existing group requires everyone to agree on one introducer, and everyone will add the new device automatically. NAT traversal and relay servers exist too. So seems it's pretty much on par with Resilio, plus open source.

For my specific use case, there's probably no device that could be an introducer. It's all PCs, none of them online 24/7. Besides, setting all that up requires way more technical knowledge than most people have. Sure, I could do it I guess, but explaining Resilio configuration to complete non-techies is hard enough.

Introducer devices don't have to be online all the time. There is also no need to limit the number of introducer devices.

I have a folder that's synced between my laptop, desktop and phone, and each has the other 2 devices as introducer.

Re: Syncthing – a continuous file synchronization program

#224

Earlier quoted context omitted.

I understand all these things because I've done this professionally for quite some time. However I've just explained that this is my build directory which means it can be deleted and I won't care. Every build quite literally overwrites all the output files so it's destructive by it's very nature. Syncthing already has an option where it won't sync deletes as well. I just don't understand why it must absolutely have a…

I suggest you put your build folder inside a synced folder, instead of syncing the build folder directly.

This is actually exactly what I started to do. Was just kind of annoying :)

Re: Syncthing – a continuous file synchronization program

#225

I would like to give a shout out to `unison` for syncing needs. It can be used with a daemon, but I use it happily with cron and it has been absolutely bulletproof* for years. I have never noticed it's resource usage at all after running the initial sync. I am never modifying the same file on two systems simultaneously, so I can afford to sync hourly with no issues. While not everyone can do this, I suspect many are…

I have used both. I'm a BIG Unison fan.

Re: Syncthing – a continuous file synchronization program

#226

Earlier quoted context omitted.

+1 for Resilio Sync. Purchased a license 7 years ago and it still works today - how refreshing is that? Lots of people love Syncthing and that is great for them, but I've always found btsync to be easier to use.

You know btsync is just reskinned IPFS.

Considering BittorrentSync had 10 million installs before IPFS was even born, I'd say you're wrong

Re: Syncthing – a continuous file synchronization program

#228

Earlier quoted context omitted.

There are cars where you can change the built-in sat nav?

Nearly all of them. Changing the media center is a well sypported third party customisation for most vehicles.

Yup, almost every single car has this ability, sat nav or not.

Re: Syncthing – a continuous file synchronization program

#229

Earlier quoted context omitted.

Lawsuit for what? Not providing an API for a feature you want? It's not like Apple specifically advertised background services, then lied about it. The device is specifically built like that, and you can buy a different phone if it's that big of an issue. It feels like complaining your toaster doesn't have a dark enough toast setting that you want. Is there a lawsuit in that?

> you can buy a different phone if it's that big of an issue. - I can't change my car's satnav. You can buy another car if it's that big a deal. I think we can agree, the above statement reads silly. Sometimes, no matter the deal size - buying a new thing isn't always a reasonable option.

Full agreement the above sounds silly. So really it comes down to line between the responsibility of the consumer, and the duty of the product creator to say what the product can or can not do.

If you really care about replacing parts in your car like the satnav, should you need to do research before buying instead of assuming it works that way?

Or should we have rules that all sat navs need to be replaceable so consumers don't need to do that?

I honestly can't draw the line myself, I just try my best to identify what I want in a product before purchasing. Especially huge purchases like a car.

Re: Syncthing – a continuous file synchronization program

#230

I have switched from Nextcloud to Syncthing. The former was a resource hog that was eating up too much everything on my modest VPS. I share the files on my local network at home between phone, laptop and desktop. My only issues so far: - I need to manually start Syncthing on the devices, whereas Nextcloud was always running on boot. Not sure if I should start it every time, especially on the Android phone which canno…

> One solution that I will try is to install a headless Syncthing instance on my NAS I've got an old computer which I run things on occasionally. I installed syncthing on it for a while and it worked well. Stopped leaving that computer on so now when there's something that needs to be synced between my desktop and laptop I just use my phone as the middle always on server.

Are you using Mobius Sync for this? I'm tempted to try it for the above reasons, but I wish it was open source.
Post reply on HN