Replies: 5 comments 3 replies
-
|
You can automate daily exports of your Trilium notes to markdown (as a zip file) using the ETAPI and external scheduling tools. Here’s how:
Tips:
This approach is the recommended and supported way to automate markdown exports and save them to Google Drive reference. To reply, just mention @dosu. How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other |
Beta Was this translation helpful? Give feedback.
-
|
I am using the following: curl -H "Authorization: " "http://userver:8080/etapi/notes/root/export?format=markdown" -o "C:\Users\1234\My Drive\Notes\trilium-export.zip" It runs and saves the trilium-export.zip fil, but it seems it's not complete. The zip file is much smaller than when I export manually, and it says it is an invalid zip file. I have the Trilium server running on a Linux box. I am running the command from my PC. What am I doing wrong? |
Beta Was this translation helpful? Give feedback.
-
|
@dosu |
Beta Was this translation helpful? Give feedback.
-
|
@dosu 10:10:17.183 ERROR: get /api/notes/:noteId/blob threw exception: 'Blob eKrATgwDPvY1MAYjCubb for notes '2OiqpiRAk4SN' was not found.', stack: NotFoundError: Blob eKrATgwDPvY1MAYjCubb for notes '2OiqpiRAk4SN' was not found. Once I found and deleted those, it worked fine. |
Beta Was this translation helpful? Give feedback.
-
|
Not really an issue with Trilium... The only thing is that "trilium-export-$(date +%F).zip" does not append the date (on Windows) but writes it exactly as specified. That must be for Linux? Is there an easy way to specify the date on Windows? If someone know, please share. Thanks!!! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Is there a way to automate an export to markdown? I would like to just save my notes as a zip file, once a day, to a Goggle drive folder. Thanks.
Beta Was this translation helpful? Give feedback.
All reactions