Skip to content

Synchronization

azivner edited this page Aug 29, 2018 · 27 revisions

Trilium supports synchronization with star-shaped topology:

This means that there's one central server (we'll call this instance sync server) and several client (sometimes called desktop) instances which all point to this sync server and synchronize against it.

Beware that synchronization is considered experimental and you should expect occasional issues which might require manual intervention.

How to setup synchronization

Setup synchronization from desktop instance to sync server

This approach is used when you already have a desktop instance of Trilium and you want to setup sync server on your web host.

So let's assume your server instance is already setup. Then open your desktop instance, click on Options ->

Conflict resolution

You can sometimes encounter a situation where you edit same note in multiple instances before the note changes are synchronized.

Trilium handles this situation by just picking up the newer change and discarding the older change. The older change should still be visible in history so it should be possible to recover any data lost in conflict resolution.

Hash check

After each completed sync, Trilium computes hash of all synced data on both client and sync server. If there's a difference, something went wrong and Trilium will notify you about this.

Clone this wiki locally