trilium icon indicating copy to clipboard operation
trilium copied to clipboard

(Feature request) Utilize Git for Notes backup

Open 0xbismarck opened this issue 2 years ago • 3 comments
trafficstars

Describe feature

May you implement a way to utilize Git to remotely back up notes?

Additional Information

No response

0xbismarck avatar Jun 29 '23 00:06 0xbismarck

Git alone is a really bad way to version database files. Trilium uses a SQLite database file instead of flat files for a number of reasons, but one drawback is incompatibility with traditional VCS’s. However, Trilium has a built-in version management system within the database as well as daily, weekly, and monthly backups.

sigaloid avatar Jun 29 '23 01:06 sigaloid

Git is not suitable for this task. The simplest way to get a remote backup is run a Trilium client on a different computer and sync it with the server.

Nriver avatar Jun 29 '23 02:06 Nriver

One useful use-case for this feature would be in cases where a team uses Git to share Markdown notes. The extra step for a Trilium user to export notes to markdown then upload them into a folder, or the reverse of downloading the notes from the Git server than importing them from the Markdown could be alleviated with this feature.

0xbismarck avatar Dec 13 '23 15:12 0xbismarck