TriliumNext / Notes

Build your personal knowledge base with TriliumNext Notes
https://triliumnext.github.io/Docs/
GNU Affero General Public License v3.0
766 stars 42 forks source link

[REQUEST] Please guide on automating export of trillium notes (using api) to save notes to nextcloud or in local directory #475

Open Greatz08 opened 5 hours ago

Greatz08 commented 5 hours ago

Describe feature

i came across this reddit post : https://www.reddit.com/r/selfhosted/comments/1ed8h9c/triliumnext_notes_the_last_note_taking_app_you/ image

I am very much interested in knowing how to do this so please guide on this. The reason for asking about this is because see i dont hate database its just that i have seen in past that some updates did mess up notes for some users so i wanted to have proper backup of my notes and all attachments and all as a file so that "IF" something goes wrong which can always happen to any project be it closed source or open source so i will still have my very precious notes saved somewhere which i can restore back but i do have few questions regarding this restoration too. If i am able to backup my notes properly as a file then will it be able to backup attachments and other related stuffs too related to that particular note and same thing for all the notes ? what will be the structure of backed up notes ? And will it be able to properly restore all notes with attachments and all if something goes wrong easily or do i have to manually recreate from zero all the notes with attachments from the backup i created ?

Additional Information

No response

Nriver commented 3 hours ago

You can try exporting root note in html formatwithtrilium-py` and that's it.

https://github.com/Nriver/trilium-py#-export-note