How to backup or clone the actual wiki inside of TW5?

76 views
Skip to first unread message

Stefan Pfister

unread,
Dec 9, 2019, 5:08:08 AM12/9/19
to TiddlyWiki
Hi folks,

some dumb question. I would like to have a button in a tiddler, which makes a copy of the same tw in a folder named "backup". 

I do it now with a nice shell script on linux from the outside via bash. But I'm wondering if there is no way inside of tiddlywiki itself to do the job. I don't speak of the normal saving. It is just for creating a backup of the opened tiddlywiki.

Regards, 

Stefan

Jed Carty

unread,
Dec 9, 2019, 5:28:33 AM12/9/19
to TiddlyWiki
This is closely related to the restrictions browsers have for file system access. The existing savers are the best we have for single file wikis. Using the same idea as the BobSaver or Put saver you could make a secondary save function that saves a file to an alternate location, and Bob has a 'save to server' function that saves a single file version of the wiki on the file system. I don't remember if the location is configurable or if it is always in default output folder that the normal node server uses when you use the save command from the terminal.

TiddlyTweeter

unread,
Dec 9, 2019, 6:17:47 AM12/9/19
to TiddlyWiki
As Jed commented, the issue is strongly related to browsers which limit saving to the download directory (though download sub-dirs can work too).

Bob (underneath its node based files) does not have these limitations. And through its "scripting" you could likely do anything.

But if you want to do this through single file wiki to a special directory outside downloads then the external bash copying route is likely easiest.

My 2 cents
TT

PMario

unread,
Dec 9, 2019, 6:40:32 AM12/9/19
to TiddlyWiki
Hi Stefan,

As TT pointed out. If you want to save outside the browser Downloads directory your bash script is fine.

If you use FireFox my AddOn may be an option: see: Mozilla AddOns. OR latest beta-release at github.

Especially see the homepage and video links ;)

have fun!
mario

TiddlyTweeter

unread,
Dec 9, 2019, 11:40:22 AM12/9/19
to TiddlyWiki
Ciao PMario

The fact your tool can save to sub-dirs of the "Downloads" folder is a big plus.

TT

Stefan Pfister

unread,
Dec 11, 2019, 4:25:43 AM12/11/19
to TiddlyWiki
Alright I'll keep my bash script. Thanks for the input.
Reply all
Reply to author
Forward
0 new messages