I installed joplin, and while it doesn't have flat file structure, I think this is the way to go. It's easy enough to create backups through the UI.
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments