this post was submitted on 07 Dec 2023
52 points (96.4% liked)

Selfhosted

39250 readers
233 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 1 year ago
MODERATORS
 

I'd like to sync my markdown notes between devices (laptop and phone), which service is better: Nextcloud or Syncthing? Any other important idea I should know?, like latency times, or maximum number of synced devices, what if I edit the same note from both places without internet and then both get connected to a network... For example, I know Nextcloud let me have a history of the notes.

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 4 points 9 months ago* (last edited 9 months ago) (1 children)

Syncthing has been much more reliable for me. It syncs extremely fast, picks up changes nearly instantly, and just works so well I never really even think about it.

Nextcloud has caused outright data loss once for me (all of my data was corrupted by nextcloud and then synced to my devices, had to completely recover from a backup), and broken due to updates several other times. It's overall very slow, and a pain to maintain through updates.

what if I edit the same note from both places without internet and then both get connected to a network…

Syncthing will handle duplicates by renaming the older copy, and also has modes for versioning and deleted file recovery that you can enable and customized how you want to.

[–] [email protected] 1 points 9 months ago (1 children)

Thanks, I'll give a try! I was thinking maybe I could use both: syncthing for devices and nexcloud to have a backup

[–] [email protected] 3 points 9 months ago* (last edited 9 months ago) (2 children)

Nextcloud isn't a backup solution, so I wouldn't go that route.

For backups look at Restic, Kopia, or Borg. They work great and are very lightweight.

[–] [email protected] 1 points 9 months ago

borg is fab; i don't think there is a mobile component tho?

restic iirc is complicated and more advanced

don't forget rsync which is sync but is the basis of various back up tools

[–] [email protected] 1 points 9 months ago (3 children)

Why do you think that Nextcloud is not a good backup solution?

[–] [email protected] 2 points 9 months ago

Backups means you have history snapshotted in time.

Nextcloud does have done simple file versioning and a "trash" for deleted files, so you could get some simple protection from mistaken deleted files. But it's more "best effort" than "designed for backups".

[–] [email protected] 1 points 9 months ago

I had some files which rot away over the years, who knows which update borked them, i use it as a cache for real backups for important files

[–] [email protected] 1 points 9 months ago* (last edited 9 months ago)

Because it's a file sync program, not backup. There's a huge difference between the two.

Backups are a snapshot of your files at a specific point in time, generally backups will be done incrementally and then compressed and deduplicated, so multiple versions of a file don't take up massive amounts of space. Once a backup is taken it isn't modified again, so you can just roll back to a point in time and restore your files exactly as they were.

Plus, Nextcloud has had at least one bug in the past that corrupted all the files stored in it, so if you didn't have a real actual backup in place you were completely screwed because all the versions were corrupted too.