Skip to content

Build your personal knowledge base with Trilium Notes

don't anonymize option notes

zadam846ac9305ecb
diff --git a/bin/tpl/anonymize-database.sql b/bin/tpl/anonymize-database.sql
index ff935d6e1d..019ef26973 100644
--- a/bin/tpl/anonymize-database.sql
+++ b/bin/tpl/anonymize-database.sql
@@ -1,5 +1,8 @@
UPDATE etapi_tokens SET tokenHash = 'API token hash value';
-UPDATE notes SET title = 'title' WHERE title NOT IN ('root', '_hidden', '_share');
+UPDATE notes SET title = 'title'
+ WHERE noteId NOT IN ('root', '_hidden', '_share')
+ AND SUBSTR(noteId, 1, 8) != '_options'
+ AND SUBSTR(noteId, 1, 3) != '_lb';
UPDATE blobs SET content = 'text' WHERE content IS NOT NULL;
UPDATE revisions SET title = 'title';