Daily backup in .MD? #9612
Unanswered
ricolandia
asked this question in
Ideas
Replies: 1 comment 1 reply
-
|
Great idea! On a related note: is there any existing solution or plan to automatically and incrementally import an Obsidian vault into Trilium? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey, again.
I'd like to suggest a built-in daily Markdown backup feature for Trilium.
The idea: automatically export all notes as .md files (preserving the folder hierarchy) on a daily schedule. This would serve 3 purposes:
Many self-hosters already back up the
document.db, but a raw SQLite file isn't very useful in an emergency. Having a/backupsfolder full of readable Markdown files would be a much more accessible recovery option.I actually put together a small Python script that does exactly this: it reads
document.dbdirectly (read-only, safe to run alongside a live instance), reconstructs the note hierarchy as folders, converts HTML notes to Markdown, and adds YAML frontmatter to each file. It also supports retention (e.g. keep last 7 daily backups) and optional ZIP compression.I'm currently testing it on my self-hosted setup, but so far it's looking promising. Happy to share the code if there's interest, and would love to see something like this land as a native feature in Trilium.
Would love to hear if this is something the team has considered!
Beta Was this translation helpful? Give feedback.
All reactions