Recurring selective sync between a private and a public wiki

70 views
Skip to first unread message

Martin Hähnel

unread,
May 9, 2018, 1:57:31 PM5/9/18
to TiddlyWiki
I'd like to have a private wiki for all of my tiddlers and a public (hosted) instance of that wiki that only includes certain tiddlers (maybe only those that are tagged "public") or something like that. The public wiki should always only include those tiddlers that are supposed to be public. So if I remove the "public" tag, they should be removed from the public instance. Is this somehow possible?

Lost Admin

unread,
May 9, 2018, 2:11:13 PM5/9/18
to TiddlyWiki
I *think* it might be possible if you host the private wiki instance on a node.js version of tiddlywiki and wrote a few custom node scripts (and deployment scripts) to generate the public version and then push it out to the public server.

I do something similar without all the scripting but the public wiki is it's own instance of TiddlyWiki in a sub directory of the private one. More specifically, my publicly accessible server (a hosted VM) runs a web server with 2 Apache Virtual servers. 

The Apache virtual server for the private access runs on HTTPS and requires authentication. It runs the Apache WebDAV module. There is a sub-folder on it that could be called "public".

The second Apache virtual server is the public access server. It's document root is the public folder of the private instance. I use separate sub-domains, one for each virtual server.

Martin Hähnel

unread,
May 9, 2018, 3:36:55 PM5/9/18
to TiddlyWiki
Ah. And here are further problems: I'd like to use the private version offline. The best case scenario would be that I would have a hosted private wiki which is mirrored offline and a hosted public version. That's what I like about ikiwiki decentralized setups in many different configurations are possible: https://ikiwiki.info/tips/distributed_wikis/

Is there a way to keep a hosted and a local version of a wiki in sync?

Lost Admin

unread,
May 10, 2018, 10:15:09 AM5/10/18
to TiddlyWiki
Short answer, not that I'm aware of but there are a number of ways to use TiddlyWiki and host it. I've only tried 3 of them.

You might be able to use Note Self (https://noteself.github.io/) and set-up your own Couchdb server. You would need to do some customization on Couchdb to create the public view. Note Self is a variation of TiddlyWiki that stores the data in a noSQL database (CouchDB) and synchronizes it with a local in-browser database (PouchDB). You can work offline (after you sync) and then sync back to CouchDB when you are back online.

I don't know how you set-up a public view that only shows a subset of the tiddlers but since CouchDB uses Javascript for server-side actions and JSON as the internal storage format, it should be possible. You would need to be a good programmer, I imagine. My own skills are way to rusty to pull this sort of thing off.
Reply all
Reply to author
Forward
0 new messages