techWebsite/content/posts/moving-away-from-nextcloud.md

87 lines
4.2 KiB
Markdown
Raw Normal View History

2023-08-10 01:36:19 -05:00
+++
title = "Moving away from Nextcloud"
date = 2024-08-05T01:33:59-05:00
2023-08-10 01:36:19 -05:00
draft = true
+++
2024-02-14 14:47:29 -06:00
## Nextcloud
2024-02-14 14:47:29 -06:00
While Nextcloud had a lot of features and provides a nice web interface,
(I got a lot of use out of Nextcloud's caldav server)
I kept running into problems and limitations with it.
2024-02-14 14:47:29 -06:00
One thing is maintenance. Of my entire homelab,
I easily spent the most time troubleshooting and fixing Nextcloud,
2024-02-14 14:47:29 -06:00
sometimes having to reboot the VM multiple times per week.
Additionally, I've ran into a few annoying limitations,
2024-02-14 14:47:29 -06:00
such as the sever crashing if you view a folder with too many files in the web interface or apps.
Nextcloud does a lot of things, and does things very well,
but I would not describe it as a rock solid piece of software.
2024-08-06 11:31:55 -05:00
Due to this, during our [move to germany](../moving-to-germany) and the resuling reorganization of the homelab,
I decided to *finally* ditch Nextcloud, after talking about it for months.
## Syncthing
[Syncthing](https://syncthing.net/) is one of the best file syncing tools in existence,
and I don't say that lightly.
Syncthing is a distributed, peer to peer file syncing service.
This means that it doesn't rely on a central, always online server ran by you or someone else,
but that your devices directly send files between themselves whenever they are online at the same time.
I used Syncthing to replace Nextclouds file syncing.
### Syncthing vs Nextcloud
Unlike Nextcloud, Syncthing has no web file manager,
2024-07-29 17:57:54 -05:00
does not do caldav or any of the other million things you can do with Nextcloud apps,
2024-02-14 14:47:29 -06:00
and requires setup on both ends to setup a syncing connection.
In short, Syncthing does only one thing.
But boy does it do that thing well.
2024-07-29 17:57:54 -05:00
During the time I've used Syncthing,
I've never seen it crash, hang, or corrupt a file.
2024-02-14 14:47:29 -06:00
Even with a device like my phone,
constantly loosing and regaining network access,
files have synced perfectly, every time.
### Distributed?
2024-02-14 14:47:29 -06:00
With Dropbox or Google drive, files are not sent directly between your devices,
but are sent from one device to the server,
then from the server to other devices.
This also applies to Nextcloud,
the only difference being who runs and controls the server.
With Syncthing, there is no central, authoritative server storing the 'master copy' of your files that other devices download from.
Instead, devices all connect to each other, sending changes made on one device to all other devices they share that file with.
This makes all of your devices into a cluster, where no device has to always be online,
but any devices that happen to be online at the same time synchronize while they can.
### Introducers
2024-02-14 14:47:29 -06:00
If you have a lot of devices, making sure every device is connected to every other device can become a hassle.
Thankfully, Syncthing has the concept of 'introducer' devices.
In short, With an introducer, you only need to connect your devices to the introducer,
and the introducer will make connections between any devices that share the same folder with the introducer.
This is very useful, for example, to enable for a always online storage server,
and it is the architecture that I used to fully replace nextcloud.
## File Manager
2024-08-06 11:31:55 -05:00
While Syncthing is great for file syncing between devices,
we also wanted to be able to acess a web interface to upload, download, and view files on devices not in our Syncthing network.
TODO
## Radicale
The final function my family and I used nextcloud for was calander and todo list syncing.
This was done over Nextclouds CalDav server,
using DavX^5 as a mobile client, and Thunderbirds Lightning plugin as a desktop client.
This was almost a more important function than filesyncing, as my wife and I use it to organize our calanders,
Keep shopping lists, chore lists, lists of movies to watch, lists of long term projects, etc.
(we *really* used the hell out of todo lists.)
2024-08-06 11:31:55 -05:00
For this, we used [Radicale](https://radicale.org/v3.html). Radicale *only* does CalDav and CardDav syncing, nothing else,
2024-08-06 11:31:55 -05:00
but between Syncthing and FileManager, thats all we needed it to do to complete the nextcloud replacement.
Installation was incredibly simple, thanks to the existence of a prebuilt NixOs module for it.
After about an hour of research and work, I had a Radicale server up and running on my Hetzner node,
and had exported all of our calanders from Nextcloud and imported them into Radicale.