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!

48 points
*

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.

permalink
report
reply
25 points
*

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.

permalink
report
parent
reply
-4 points
*

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 !

permalink
report
parent
reply
20 points

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.

permalink
report
parent
reply
-1 points
  • for its* simplicity and robustness
  • with its* ups and downs
permalink
report
parent
reply
24 points

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…

permalink
report
reply
4 points

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.

permalink
report
parent
reply
3 points

Yeah with a docker container running 24/7 and a phone app it’s much better. they also have a setting where deleted files on phone are simply moved to archive on the server.

permalink
report
parent
reply
18 points

I would go with syncthing, it uses far fewer resources, is rock solid and out of your way.

permalink
report
reply
16 points

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.

permalink
report
reply
14 points
*

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).
permalink
report
reply
8 points

Syncthing can do direct sync if you give the ip address to each node and you can disable relay servers .

permalink
report
parent
reply
5 points

Thanks! Updated.

permalink
report
parent
reply
1 point

Happy to help 😉

permalink
report
parent
reply
5 points

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.

permalink
report
parent
reply
4 points

I switched the the snap package and it’s been rock solid and pain free the entire time.

I welcome any and all comments on why snap is Satan.

permalink
report
parent
reply

Selfhosted

!selfhosted@lemmy.world

Create post

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don’t control.

Rules:

  1. Be civil: we’re here to support and learn from one another. Insults won’t be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it’s not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don’t duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

Community stats

  • 4.7K

    Monthly active users

  • 3.2K

    Posts

  • 71K

    Comments