Updated Synchronization (markdown)

zadam 2020-05-02 12:30:50 +02:00
parent 88b61d2686
commit 0813a1a826

@ -1,4 +1,4 @@
Trilium supports synchronization with star-shaped topology:
Trilium is offline-first note taking application - when you use the desktop application, all the data is stored locally, but you also have an option to set up synchronization to the server instance. When you add another desktop client, you can get to star-shaped topology:
[[images/star-topology.png]]
@ -12,13 +12,13 @@ Once sync is setup, synchronization is automatic and ongoing - you don't need to
This approach is used when you already have a desktop instance of Trilium and you want to [[setup sync server on your web host|Server installation]].
So let's assume your server instance is already setup. Then open your desktop instance, click on Options -> Sync tab -> Sync configuration and set "Server instance address" to point to your sync server. Click Save.
So let's assume your server instance is already deployed but it's uninitialized (no data). Then open your desktop instance, click on Options -> Sync tab -> Sync configuration and set "Server instance address" to point to your sync server. Click Save.
[[images/sync-config.png]]
Now click on "Test sync" button which will tell you if the handshake with sync server succeeded. If yes, sync with sync server started and might take some time to finish, but you can close the Options dialog and keep using Trilium.
Now click on "Test sync" button which will tell you if the handshake with sync server succeeded. If yes, sync with sync server started - client started pushing all the data towards the server instance. This might take some time to finish, but you can close the Options dialog and keep using Trilium.
You can also check the server instance periodically to see if the sync finished. Once it's finished you should see login screen.
You can also check the server instance periodically to see if the sync finished. Once it's finished you should see the login screen.
### Setup synchronization from sync server do desktop instance
@ -53,4 +53,4 @@ Trilium handles this situation by just picking up the newer change and discardin
## 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.
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 run automatic recovery mechanism.