upgrading trilium

zadam 2020-01-04 09:52:52 +01:00
parent 30a2fa6657
commit e5087ee380

18
Upgrading Trilium.md Normal file

@ -0,0 +1,18 @@
Topic of this page is upgrading Trilium from one version to another.
# How to upgrade
Trilium does not have a built-in auto upgrade - all upgrades have to be done manually. How to do this depends on the installation method:
* for [[docker server installation]] - pull the image of the newer version and restart
* for all others you need to download new version of the release artifact of your choice from the [release page](https://github.com/zadam/trilium/releases/latest) and replace existing version of the application - i.e. rename/delete the old directory and extract the archive of the new version
# Document compatibility and migration
During Trilium startup, [[document]] will be checked whether it conforms to the version supported by the application. In case the document is in the old version, Trilium will automatically migrate it to the new version. This will then mean that the document will not be readable anymore by the older versions of Trilium. In case you want to go back to the old version of the document and Trilium, you can restore the [[backup|backed up]] `backup-before-migration.db` which is created before every migration.
# Sync compatibility
[[Synchronization]] protocol is versioned and all members of the sync cluster need to talk in the same protocol version. Therefore when you are upgrading from one version to another, it might be necessary to upgrade all instances in the cluster.
Change in protocol version is usually indicated on a release page.