74
submitted 6 months ago* (last edited 6 months ago) by tubbadu@lemmy.kde.social to c/selfhosted@lemmy.world

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!

you are viewing a single comment's thread
view the rest of the comments
[-] N0x0n@lemmy.ml 47 points 6 months ago* (last edited 6 months ago)

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.

[-] atzanteol@sh.itjust.works 24 points 6 months ago* (last edited 6 months ago)

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.

[-] N0x0n@lemmy.ml -4 points 6 months ago* (last edited 6 months ago)

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 !

[-] atzanteol@sh.itjust.works 20 points 6 months ago

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.

[-] N0x0n@lemmy.ml 0 points 6 months ago* (last edited 6 months ago)

Do you think webdav somehow dumps you database? No it's just a protocol to save your files on your webserver. It's just a middelman.

recommended to somebody an option that is the exact opposite of what you know to be true.

Yeah it's my recommendation from my personal experience. Is that wrong? I use it nearly everyday without any data corruption. Is my personal experience not valide?

The point is, syncthing is rock solid, never had any issue being it with my zotero database or syncing files between my devices. If you're a Nextcloud advocate or are against my personal opinion so be it :).

Agree that we disagree !

[-] atzanteol@sh.itjust.works 11 points 6 months ago

Do you think webdav somehow dumps you database? No it’s just a protocol to save your files on your webserver. It’s just a middelman.

Umn. It allows the application to do its own synchronization and diff resolution. It's why they recommend it.

Directory synchronization is a "best effort" to copy files back and forth without considering the application's needs. Copying database files while they're being written can be problematic for example.

Both Nextcloud and syncthing will synchronize a folder. And it will probably work if you aren't making lots of changes on both systems. But there is increased risk.

Yeah it’s my recommendation from my personal experience. Is that wrong?

Yes - absolutely. "I've been lucky so far" and recommending against what the product you're using says you should do is TERRIBLE advice.

The point is, syncthing is rock solid, never had any issue being it with my zotero database or syncing files between my devices. If you’re a Nextcloud advocate or are against my personal opinion so be it :).

Why are you getting defensive towards syncthing? It seems fine. It's the wrong tool for what you're using it for.

[-] itsnotits@lemmy.world -1 points 6 months ago
  • for its* simplicity and robustness
  • with its* ups and downs
this post was submitted on 15 Jun 2024
74 points (97.4% liked)

Selfhosted

40717 readers
176 users here now

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!

founded 2 years ago
MODERATORS