mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 18:08:33 +02:00
how to anonymize from command line
parent
b0f6d4c9f4
commit
66e4715d56
@ -38,6 +38,16 @@ In some cases it's necessary to see the database structure to be able to debug t
|
||||
|
||||
For this Trilium supports anonymization of the database - you can trigger this in Settings -> Advanced tab.
|
||||
|
||||
This will create a copy of your document and remove all sensitive data (currently note titles and note contents and some of the options) while leaving all structure and metadata (e.g. date of last change). After this is done, database is [VACUUMed](https://sqlite.org/lang_vacuum.html) to make sure there's no stale sensitive data in the document file. Resulting file is stored in `trilium-data/anonymized` directory. You can safely attach it with your bug report.
|
||||
This will create a copy of your document and remove all sensitive data (currently note titles, contents, revisions, history and some of the options) while leaving all structure and metadata (e.g. date of last change). After this is done, database is [VACUUMed](https://sqlite.org/lang_vacuum.html) to make sure there's no stale sensitive data in the document file. Resulting file is stored in `trilium-data/anonymized` directory. You can safely attach it with your bug report.
|
||||
|
||||
Note that [[attributes]] are not cleared because they can contain important metadata for debugging.
|
||||
Note that [[attributes]] are not cleared because they can contain important metadata for debugging.
|
||||
|
||||
#### Command line anonymization
|
||||
|
||||
If the database is corrupted in a way which prevents Trilium to start up, you won't be able to trigger the anonymization from the UI. For such a case, anonymization is also available from command line:
|
||||
|
||||
```
|
||||
node src/anonymize.js
|
||||
```
|
||||
|
||||
This needs to be executed in the directory with Trilium source files, for desktop builds this in in `resources/app` directory.
|
Loading…
x
Reference in New Issue
Block a user