Update Trilium on Server

Update Trilium on Server

Download the new docker container: docker stop trilium && docker pull triliumnext/notes:v0.xx (change the version number to the one you wish to update to)

Change the version in your crontab and run the command: sudo crontab -e

@reboot docker run -d --name "trilium" --restart unless-stopped -p 0.0.0.0:12756:8080 -v /home/m/trilium:/home/node/trilium-data triliumnext/notes:v0.xx

To start the new trilium server, you have to remove the old container and create a new one by running: docker rm trilium && docker run -d --name "trilium" --restart unless-stopped -p 0.0.0.0:12756:8080 -v /home/m/trilium:/home/node/trilium-data triliumnext/notes:v0.xx

Now you might wish to remove the old image by running docker image rm triliumnext/notes:v0.xx