From b08c7a65b98693d1394b850ccad031a357ab637d Mon Sep 17 00:00:00 2001 From: zadam Date: Wed, 27 Jan 2021 21:14:16 +0100 Subject: [PATCH] Updated Backup (markdown) --- Backup.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Backup.md b/Backup.md index 949a080..67609fe 100644 --- a/Backup.md +++ b/Backup.md @@ -19,7 +19,8 @@ Let's assume you want to restore the weekly backup, here's how to do it: * I'll refer to `~/trilium-data` as data directory from now on * find `~/trilium-data/backup/backup-weekly.db` - this is the [[document]] backup * at this point stop/kill Trilium -* copy and rename this `~/trilium-data/backup/backup-weekly.db` to `~/trilium-data/document.db` - this will delete the current state of the [[document]] so you might want to back it up somewhere else +* delete `~/trilium-data/document.db`, `~/trilium-data/document.db-wal` and `~/trilium-data/document.db-shm` (latter two files are auto generated) +* copy and rename this `~/trilium-data/backup/backup-weekly.db` to `~/trilium-data/document.db` * start Trilium again If you have configured sync then you need to do it across all members of the sync cluster, otherwise older version (restored backup) of the document will be detected and synced to the newer version.