Using Syncthing with Joplin

Interesting tutorial on how to use Joplin with Syncthing:

8 Likes

I like the idea and use syncthing for my documents folder across devices. Unfortunately syncthing doesn’t have an iOS app.

I’m also hesitant to expose too many services to the internet from my home network.

Also, doesn’t Joplin encrypt the DB and attachments it stores (in Dropbox in my case)?

Don't sync your joplin home directory. This can lead to a corrupt database. As you have also noticed the data there are all not encrypted. Use file sync and sync this folder with syncthing. As it is described in the article.

Hello, I used Syncthing to sync between my Windows and Android tablet, BUT something happens that none of the images appear. It seems that the Android Joplin database does not update, even after clearing cache, sync again etc. Any thoughts?
What I am using: Windows 7 with Joplin v. 2.11.11 / Andoid v.12 with Joplin 2.11.32

Hello,

What is the difference between Syncthing and WebDAV, and is it as fast as WebDAV?

Webdav is a file storage service, syncthing is a file syncronization service. Depending on the webdav service, it can be fast or slow. Syncthing speed primarily depends on connection speed.

Syncthing is actually very slow on Android 11+ when dealing with many small files located in a single folder (which is the case with Joplin). This is due to the how the OS deals with filesystem access through FUSE. There is no workaround. This is one of the reasons why I only sync a small Joplin profile to Android.

1 Like

ah, good to know. i'm using syncthing from my android 14 phone to my synology NAS. haven't noticed any significant speed issues, but i'm not syncing a ton of files. when my target was my self-hosted nextcloud, it was definitely slower but i attributed that to nextcloud and not to syncthing.

How many exactly? :slight_smile:

In my experience, it works fine until ~1000 files in the Joplin filesystem sync folder, however once the number reaches a few thousands, then even just scanning the folder in Syncthing may take forever, especially if the Android device in question isn't a flagship. This is important because Syncthing needs to finish scanning the folder before it syncs new files into it, so the whole synchornisation gets delayed.

it's been a while, but if memory serves it was only 200-300 -ish...

Another example of how knowledge multiplies as it is shared...

Hello,

So, what do you suggest we do to achieve fast synchronization between Joplin's computer and Android versions? Is using WebDAV a solution?

Can't really answer the question, I've only ever used Syncthing for Joplin. One big advantage of Syncthing on Android is that it can run and sync in background, meaning that even though the sync itself may take a while, it is able to run all the time, so in most cases all note-related files are already synced when you actually open the Joplin app. The app itself still needs to perform its own synchronisation with the filesystem, but that's usually quick (as long as the hardware is decent) and also doesn't even require Internet connectivity.

1 Like

Thank you for your response, but I'm a bit confused. Above, you mentioned that there is also slowness with Syncthing. However, at the same time, you say that Syncthing could be a fast solution.

Let me express my question more clearly. I am currently using Onedrive, and I have around 10,000 notes. If I were to format my computer or phone and reinstall Joplin from scratch, the synchronization of around 10,000 notes with Onedrive could take hours, maybe even days. If I were using Syncthing for synchronization, how would it be different for me?

I'm using WebDAV from my Synology NAS to a bunch of Android devices. About 3000 notes (9000 files) and on most devices it's taking around 6-7 seconds. Everything from a super-slow Tab A8 to a more recent (but still antique in this field) Tab S7+. The initial sync of each device can take many hours due to the >35000 "resources" involved but after it's done it works perfectly.

If you also add that getting a high-end NAS device and monthly server rental are necessary for this solution, then people who cannot afford these things will not bother researching your method in vain.

Most low to midlevel nas devices are fine (as long as you can install a webdav server on it). Going this route, you do not need any other server rental.

1 Like

A $300 NAS is all it took. I don't know what server you refer to but none is needed. I later upgraded the NAS but the initial investment worked perfectly and I didn't have to put all my notes out on a public platform like the internet.

2 Likes

@HarSel @sttrebo

Can you set up a server using the NAS device linked below, for example?

I'm using a truenas scale server with an instance of Joplin server on it.

Very fast.

Tailscale vpn for internet connectivity.

1 Like