trilium/dump-db
dependabot[bot] df3212c304
Bump minimist from 1.2.5 to 1.2.7 in /dump-db
Bumps [minimist](https://github.com/minimistjs/minimist) from 1.2.5 to 1.2.7.
- [Release notes](https://github.com/minimistjs/minimist/releases)
- [Changelog](https://github.com/minimistjs/minimist/blob/main/CHANGELOG.md)
- [Commits](https://github.com/minimistjs/minimist/compare/v1.2.5...v1.2.7)

---
updated-dependencies:
- dependency-name: minimist
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-12-14 22:50:02 +00:00
..
inc introduced new exception classes for structured error reporting 2022-12-09 16:13:22 +01:00
dump-db.js introduced new exception classes for structured error reporting 2022-12-09 16:13:22 +01:00
package-lock.json Bump minimist from 1.2.5 to 1.2.7 in /dump-db 2022-12-14 22:50:02 +00:00
package.json DB dump tool feature complete 2022-02-12 22:20:15 +01:00
README.md use trilium version number in asset paths to avoid caching issues WIP 2022-10-26 23:50:54 +02:00

Trilium Notes DB dump tool

This is a simple tool to dump the content of Trilium's document.db onto filesystem.

It is meant as a last resort solution when the standard mean to access your data (through main Trilium application) fail.

Installation

This tool requires node.js, testing has been done on 16.18.0, but it will probably work on other versions as well.

npm install

Running

See output of node dump-db.js --help:

dump-db.js <path_to_document> <target_directory>

dump the contents of document.db into the target directory

Positionals:
path_to_document  path to the document.db
target_directory  path of the directory into which the notes should be dumped

Options:
--help             Show help                                         [boolean]
--version          Show version number                               [boolean]
--password         Set password to be able to decrypt protected notes.[string]
--include-deleted  If set to true, dump also deleted notes.
[boolean] [default: false]