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.