Hello fellow selfhosters! I have a laptop and a tablet (both running endeavourOS), and I want a certain folder to be always in sync. I also have a very potato server.
My two options currently are Nextcloud and Syncthing. The laptop and the tablet are rarely online at the same time, so I need the server as middleman (so, no syncthing laptop <-> tablet, but laptop <-> server <-> tablet).
Which one do you recommend? The power consumption (of the client) is also very important, because both the laptop and the tablet are battery-powered
I’m also open to other options as well!
thanks in advance to everyone!
Edit: thanks to everyone for your precious help! I finally set up syncthing and it’s working flawlessly!
Nextcloud and syncthing a 2 different things. While synching keeps your files synchronized between your devices, nextcloud is a cloud platforme which gives you access to your files on your server. The difference is actually very important even though a lot would argue that they are the same.
It really depends what type of technology you want/need. I would recommended syncthing for it’s simplicity and robustness. It only does one thing but it does it very well !!
To give you an example, I have a syncthing sever which is a middleman for my Zotero database. Laptop <-> Server (syncthing) <-> desktop
. It’s very important to keep it in sync for the integrity of the zotero database !
This kind of workflow wouldn’t work with nextcloud or rather will most of the time corrupt my database.
Nextcloud works as a simple cloud platforme wich is also great (with it’s up and downs) but works only as a cloud platforme to keep your files on your server.
The zotero docs recommend against synchronizing by just copying a folder as it can lead to corruption.
They recommend using webdav which nextcloud supports but syncthing doesn’t.
So your workflow is definitely possible with nextcloud and is the preferred option.
Yes I’m aware of that notice :) but it has been rock solid. Because it’s not just a copy. It syncs the folder.
This can happend if you work on both devices with Zotero at the same time (why would you do that anyway??). I already did my tests and with my server as a middelman I never had any corrupted data !
What does this mean?
it’s not just a copy. It syncs the folder.
It’s remarkable to me that you recommended to somebody an option that is the exact opposite of what you know to be true.
Having setup both, ive found syncthing to be much simpler. I would probably not go through the headache of setting up https and databases for next cloud again…
I’ve also set up both and in my experience Nextcloud is much much more complicated to set up but simpler to use and syncthing is pretty much the exact opposite.
In my case, a rather long time ago, it failed to reliably sync my files, had a super annoying web based UI, was a pain to get all my devices to talk to each other because because they had to join some sort of peer to peer network and authenticate with the earth other all three. It also didn’t have any working solution for mobile devices. Hopefully all of that’s fixed now because there’s no inherent reason it couldn’t work.
I would go with syncthing, it uses far fewer resources, is rock solid and out of your way.
For that use case, go syncthing. Nextcloud would be overkill. I run both, I use syncthing for my personal files and Nextcloud when they should be shared with others.
Quick pros/cons from what I’ve read (correct me if I’m wrong - I’ve not used syncthing myself):
syncthing
Pros:
- Easy to setup and use.
- No infrastructure to maintain
- Will sync directories between computers
Cons:
- Uses third party resources to sync by default (can setup direct sync if needed/wanted however)
- Only does directory synchronization
Nextcloud
Pros:
- Can synchronize directories
- Entire synchronization pipeline is under your control
- Offers a lot more functionality if you want it (WebDAV, Calendars, public shares with “anyone with URL can view” permission, etc.)
Cons:
- You need to setup/maintain your Nextcloud server
- Can be fiddly to setup for some (wasn’t for me - but lots of people do complain about it).
Syncthing can do direct sync if you give the ip address to each node and you can disable relay servers .
The maintenance part crushed me. Most of my other self hosted home setup, I fiddle with at most 2-3 times a year. Next cloud, I logging in at least once a month because something wasn’t working.