News for hackers. Stuff that matters.
Re:My one-liner Linux Dropbox client by panzerklein on Tuesday December 25, 2018 @07:38AM (#18757192)
I setup Syncthing [1] to do the same for my vimwiki folder. It was surprisingly easy, and doesn't require any external storage services. And it can even automatically sync files without internet, over the local network.

[1] https://syncthing.net/

Re:My one-liner Linux Dropbox client by luckman212 on Tuesday December 25, 2018 @12:40PM (#18758256)
I've used Syncthing and it's excellent. But for me, the lack of a mobile app was a dealbreaker. Even though it's not open source, I switched to Resilio Sync[1] (formerly known as btsync). It ticks all the other boxes, and just works amazingly well. I want to support them so I sprang for the $20 one time Pro license which adds selective sync and a few other nice features.

[1] https://www.resilio.com/individuals/

Re:My one-liner Linux Dropbox client by yorwba on Tuesday December 25, 2018 @01:01PM (#18758379)
Re:My one-liner Linux Dropbox client by Operyl on Tuesday December 25, 2018 @01:57PM (#18758714)
For Android yes, but the GP is likely using iOS where no such client seems to exist.
Re:My one-liner Linux Dropbox client by licebmi__at__ on Tuesday December 25, 2018 @02:43PM (#18758892)
I used fsync when using I bought an apple device https://itunes.apple.com/us/app/fsync/id964427882

It's lacking and has a weird workflow, but at least it worked for me. Didn't test it too much as I hated the apple experience and gave away the device.

Re:My one-liner Linux Dropbox client by Operyl on Tuesday December 25, 2018 @08:55PM (#18760015)
The reviews would show you that it no longer works at all for iOS 12 and beyond.
Re:My one-liner Linux Dropbox client by luckman212 on Wednesday December 26, 2018 @11:31PM (#18767317)
That's correct.
Re:My one-liner Linux Dropbox client by ApolloRising on Tuesday December 25, 2018 @08:08PM (#18759906)
Does Resilio sync encrypt the file names and folders during sync or just the data?
Re:My one-liner Linux Dropbox client by luckman212 on Wednesday December 26, 2018 @11:43PM (#18767377)
All traffic between peers is encrypted. You can read more about the encryption below[1]. You can also create encrypted (at rest) folders[2] for replicating via public clouds while still maintaining 100% privacy.

[1] https://help.resilio.com/hc/en-us/articles/205451025-Can-oth...

[2] https://help.resilio.com/hc/en-us/articles/207370466-Encrypt...

Re:My one-liner Linux Dropbox client by jeena on Tuesday December 25, 2018 @09:04AM (#18757434)
I use Syncthing for my KeepassX on 6 computers (Linux) and my phone. My music folder too. My photos folder between 3 computers. And then we use Syncthing to sharo Call of Duty maps between 5 people (Mac, Windows). All in all I really like it. I also start it with systemd on Linux.
Re:My one-liner Linux Dropbox client by hellcow on Tuesday December 25, 2018 @08:23AM (#18757305)
I've been using Syncthing for more than a year across ~6 machines to keep them in sync. It works great for more complex setups than the article describes.
Re:My one-liner Linux Dropbox client by pickdenis on Tuesday December 25, 2018 @11:46AM (#18757995)
If you don't need mobile support, you (not parent, but someone else reading this) should try Unison. I use it and can vouch for its reliability, and if your use case is simple (sync files between N computers with a central server), then it's probably the best tool for the job as it's considerably faster than syncthing.
Re:My one-liner Linux Dropbox client by AstroJetson on Tuesday December 25, 2018 @03:58PM (#18759186)
Yay Unison! I also use it and love it. I use it to back local servers up to the central file service, another copy flings to a remote server. Very fast, very happy. I'd love for it to do the collection of iThings, but Unison grabs the iTunes files, so I use that path.
Re:My one-liner Linux Dropbox client by superasn on Tuesday December 25, 2018 @12:32PM (#18758209)
Just had a look, definitely looks amazing especially this particular feature for ignoring files [1]. I've been waiting so long for this in Dropbox.

[1] https://docs.syncthing.net/users/ignoring.html

Re:My one-liner Linux Dropbox client by l_pan_ on Tuesday December 25, 2018 @07:36PM (#18759824)
You can simply use grep to ignore files using the entr + rclone script ;-)
Re:My one-liner Linux Dropbox client by catacombs on Tuesday December 25, 2018 @02:28PM (#18758829)
I'm sorry if this is a stupid question:

If I have my desktop and my laptop, both using syncthing, does one (my desktop) need to always be online for me to sync files from my other device (my laptop)?

I'd love to use something else besides Dropbox, but it's convenient that Dropbox works as the middleman that is always operating.

Re:My one-liner Linux Dropbox client by bennofs on Tuesday December 25, 2018 @02:34PM (#18758854)
It can only sync data between devices that are operating of course. But if you have three devices A,B,C then it can also sync A-B and later sync B-C, or sync A-C directly if both are running.
Re:My one-liner Linux Dropbox client by catacombs on Tuesday December 25, 2018 @04:02PM (#18759205)
> It can only sync data between devices that are operating of course.

What does this mean? Does my desktop always need to be on? Or, can I change a file on my laptop, then, when I turn on my desktop, get those changes on the same file?

Re:My one-liner Linux Dropbox client by zeta0134 on Tuesday December 25, 2018 @08:04PM (#18759897)
I do exactly this regularly, but it only works because for my most important folders (like personal documents), _somewhere_ I have a device online that is facilitating the sync. In my case, my Desktop, Laptop, mobile phone (Android), and a Cloud Server that I use for other things.

To answer the question most directly: If you have only your desktop and your laptop, then for the sync to work, at some point they both need to be powered on and online at the same time. This is one area where syncthing is a bit weaker than some other cloud-backed options; at that point you're essentially paying a service provider to replace the cloud server in my personal setup with their own always-on solution. Personally I prefer not to rely on a third-party, depending on your goals though you should pick a solution that makes sense for you.

Re:My one-liner Linux Dropbox client by n4r9 on Wednesday December 26, 2018 @05:23AM (#18761516)
You would need to have a chronological chain of pairs of devices operating at the same time, beginning with your laptop and ending with your desktop.

I tend to use my phone to ferry information between home pc and work pc. If I change something in my sync folder at work, I'll run sync thing on the pc and phone before leaving, then run it on my home pc and phone when I want the information to update on my home pc.

Another option is to simply have a third system (eg your own server) which is constantly operating on the Internet and running sync thing.

Re:My one-liner Linux Dropbox client by hellcow on Tuesday December 25, 2018 @04:19PM (#18759264)
It means you need both computers to be on at the same time to sync between them. Alternatively you can spend $5/mo for a server to handle the syncing between laptop and desktop in the way the grandparent described.
Re:My one-liner Linux Dropbox client by jjeaff on Tuesday December 25, 2018 @04:50PM (#18759343)
Or plug in something small like a raspberry pi with an external USB hard drive.
Re:My one-liner Linux Dropbox client by jogundas on Tuesday December 25, 2018 @08:48AM (#18757377)
Though very useful, syncthing unfortunately uses direct communication which leads to problems with port forwarding.
Re:My one-liner Linux Dropbox client by yjftsjthsd-h on Tuesday December 25, 2018 @08:51AM (#18757387)
They have relay servers.
Re:My one-liner Linux Dropbox client by jogundas on Wednesday December 26, 2018 @01:53PM (#18763889)
Re:My one-liner Linux Dropbox client by gsich on Tuesday December 25, 2018 @11:37AM (#18757958)
Sadly, the Android-App still can't save stuff on the SD card. My main show-stopper.
Re:My one-liner Linux Dropbox client by yorwba on Tuesday December 25, 2018 @01:04PM (#18758399)
It's an Android permission issue. Put it into /sdcardX/Android/data/com.nutomic.syncthingandroid/files/ and Syncthing can write to the folder just fine.
Re:My one-liner Linux Dropbox client by gsich on Tuesday December 25, 2018 @04:34PM (#18759300)
The devs should fix this.
Re:My one-liner Linux Dropbox client by opencl on Wednesday December 26, 2018 @07:43AM (#18761875)
They fundamentally cannot fix it. Unless you mean the people developing Android.
Re:My one-liner Linux Dropbox client by gsich on Wednesday December 26, 2018 @09:24AM (#18762253)
Other apps can use the SD card just fine. Example: Nextcloud
Re:My one-liner Linux Dropbox client by opencl on Wednesday December 26, 2018 @09:47AM (#18762370)
Nextcloud has the exact same SD limitation of needing an app-specific folder. For syncthing it's Android/data/com.nutomic.syncthingandroid/files/ and for nextcloud it's Android/media/com.nextcloud.client.
Re:My one-liner Linux Dropbox client by gsich on Wednesday December 26, 2018 @11:50AM (#18763068)
I don't mind an app specific folder. The app should do it for you.