Export encrypted wiki from node.js

53 views
Skip to first unread message

Alex V

unread,
Jan 13, 2019, 1:52:16 PM1/13/19
to TiddlyWikiDev
How do I export the whole wiki from a running node.js instance, but as an encrypted single html file?

I've tried "tiddlywiki MyWiki --build index --password ****", but that just gives me an unencrypted file (just like using the save function on the wiki).

I also tried
"tiddlywiki MyWiki --password **** --build index", but that leads to tons of errors.

Is
this possible? It would be handy to have a secure backup if my server is down. Thanks

Jeremy Ruston

unread,
Jan 13, 2019, 3:29:45 PM1/13/19
to tiddly...@googlegroups.com
Hi Alex

I also tried "tiddlywiki MyWiki --password **** --build index", but that leads to tons of errors.

What errors do you get? That should work; you can see how the core "encrypted.html" is built here:


Best wishes

Jeremy

Alex V

unread,
Jan 13, 2019, 5:17:33 PM1/13/19
to TiddlyWikiDev
What errors do you get? That should work;

$:/core/modules/commands/build.js:27
       
var buildTargets = $tw.boot.wikiInfo.build;
                                             
^

TypeError: Cannot read property 'build' of null
    at
Command.execute ($:/core/modules/commands/build.js:27:39)
    at
Commander.executeNextCommand ($:/core/modules/commander.js:107:14)
    at
Commander.executeNextCommand ($:/core/modules/commander.js:111:12)
    at
Commander.execute ($:/core/modules/commander.js:64:7)
    at
Object.exports.startup ($:/core/modules/startup/commands.js:34:12)
    at
Object.$tw.boot.executeNextStartupTask (/usr/lib/node_modules/tiddlywiki/boot/boot.js:2116:10)
    at
Object.$tw.boot.executeNextStartupTask (/usr/lib/node_modules/tiddlywiki/boot/boot.js:2114:21)
    at
Object.$tw.boot.executeNextStartupTask (/usr/lib/node_modules/tiddlywiki/boot/boot.js:2114:21)
    at
Object.$tw.boot.executeNextStartupTask (/usr/lib/node_modules/tiddlywiki/boot/boot.js:2114:21)
    at
Object.$tw.boot.executeNextStartupTask (/usr/lib/node_modules/tiddlywiki/boot/boot.js:2114:21)


I tried it again just now and it worked. No idea why. All that changed was the output file name in the tiddlywiki.info file.

Thanks for the help

Alex
Reply all
Reply to author
Forward
0 new messages