Possibility to export DB Backups to external location #1443
Replies: 4 comments
-
If I understand this correctly: you want to be able to have the DB backup uploaded onto an external location. I like the idea in general, but IMHO think this would be ideally be realized as a plugin, for when there eventually (hopefully) will be a plugin system in place for TriliumNext - otherwise you'd end up with having to bundle a bit of extra "weight" due to all the extra clients you'd need to communicate with those services/protocols |
Beta Was this translation helpful? Give feedback.
-
I can only see this done as potential plugins, not planned for now. |
Beta Was this translation helpful? Give feedback.
-
Personally I'm nervous about copying db files, having had conflict and data loss issues before with other apps that saved the db on dropbox/onedrive/google-drive. It's probably best served at the db infrastructure level by adopting something like LiteFS or rqlite. My closer-to-today idea is with trilium-py export->import scripts. I've a few small experiments in that realm but haven't achieved lossless round trip yet. I think it's possible with more time and attention. However given that fly.io makes LiteFS, getting a Trilium Next docker image running there might be a "hey, it works already!" moment for the scenario you describe. |
Beta Was this translation helpful? Give feedback.
-
You can also use Kopia to synchronize a local directory (GUI or Terminal supported) to all different kinds of backup solutions. I've used it, along with Restic, to backup/restore the DB without issue. Depending on how you have TriliumNext deployed, you could easily add Kopia to your Docker compose stack, or directly on the host. |
Beta Was this translation helpful? Give feedback.
-
Describe feature
I understand how the title might be confusing but the feature I want to request is exactly that. I put down the context first.
Now I understand how Trilium already has the functionality to backup the db in a scheduled way in the local filesystem. But I don't know how I should periodically push that to a bucket from within Trilium itself. I could have a custom background worker which does the job but I think it'll be a sleek and efficient solution to be done from Trilium itself. Now given this seems like a custom use case but I believe having the functionality to simply push the db to an external bucket or File server for redundancy would be an excellent feature, which would further my cause as well. This would also allow me to publish my solution as a robust Trilium deployment accessory pushing adoption.
I have more ideas for Trilium accessorizing and making it even more attractive to anyone with a Phone but that is a point to be discussed separately.
Additional Information
No response
Beta Was this translation helpful? Give feedback.
All reactions