I've looked hard and tried lots of packages as well as rolling my own. Frankly, Evernote has been at it for 7 years and spent $225M on the problem, and they have done a pretty damn great job at it.
I've asked myself WHY do I want to host my own data. My innermost thoughts are hard to imagine being broadcast to the NSA, Chinese government, and any ambitious cracker... but what I write about I will eventually publish anyhow. And the projects I am working on will eventually be free software anyhow. AND even with my own infrastructure I know that the NSA/Chinese/Crackers could find a way in.
I gave up on giving up on the cloud. From one perspective, I think that security through obscurity (with 7 Billion folks, why does my stuff matter THAT much?) is a thing. Another thing is that if my work were discovered, what would happen? Controversy? Notoriety? As a marketer I crave those things.
I have some very patentable, valuable work sitting in Evernote, Google Drive, iCloud, OneDrive, various local and hosted Owncloud/NeverNote/Laverna/LibreOffice files. My plan is to get as much as I can of it into Evernote and move on with my work rather than spending more time on this question.
Ultimately I had to ask myself this: If I am going to ask even one person to trust my service with their data, why can't others ask the same of me?
FYI, Here is what my Evernotes are about: I think that the future of computing should be based on Canonical Identity via Blockchain, 'personal fact clouds' for every identity that store state in infinispan grids (most will use hybrid clouds, but could be fully self hosted on an RPi in a fanny pack), datamic+datalog for interfacing with the data, and infinite user and machine interfaces to that data. I think that CoreOS/Ubuntu Core could be the foundation for personal grid computing, every app can be a container with on demand scaling and failover, and that data transport can be equally at home on a sneakernet, the internet of today, or the mesh network of tomorrow. I believe that data is soveign, sharing of that data should always be FINITE, all user interfaces should be stateless, and hardware should allow for users to compose their own interfaces. In this future, VR and IOT are instantly integrated, everybody owns their own data, and short of physical access data isn't shared ever ever ever unless with finite permission.
I'm using Evernote for now because it is fast and lets me work on my work. And now that y'all have my ideas to steal, do. Please. Let's build a better world together, eh?
Being open rarely closes doors.