Introducing myself and my saving/ backup batch script

131 views
Skip to first unread message

Alanp101

unread,
Oct 24, 2019, 4:18:54 AM10/24/19
to TiddlyWiki

Hi. I found TiddlyWiki about two years ago and have been using it ever since for both work and at home.


I work in an IT operations team and manage a few shared wikis used across my team as well as a number or private ones. At home I used one while I was going through the process of buying my first house and I found it invaluable to the process and the months that followed. I’m sure I don’t need to elaborate further on how helpful TiddlyWiki has been to this group.

I’ve been following this group for some time as well but this is my first time posting. Not being a developer, I feel I have little new to offer the group other than my appreciation of all the plugins and useful information I’ve come across in the group.


The main hurdle I had to overcome on using TiddlyWiki is how it saves. In all instances I use the single file version of the wiki and host in on servers local to the company/ myself. None of the solutions advertised really appealed to me or was compatible with my works security policies. Instead I developed a simple batch script for each wiki to back up the original copy and put the new file in place.

As the number of wikis I began to want/ need increased I decided to rewrite it to have one script set to work on multiple wikis. It’s not the most elegant solution in the world and its not without its problems; the main one being you need to manage the clear downs of the backups yourself or the amount of them gets out of hand depending on the amount of times you update the wiki.


I’ve uploaded the scripts to github and decided to share with the group in case someone found it useful. Its also the first time I’ve uploaded any of my scripts to Github.


https://github.com/alanp101/TiddlyUpdater-script

A Gloom

unread,
Oct 24, 2019, 4:32:27 AM10/24/19
to TiddlyWiki
Welcome,

I’ve uploaded the scripts to github and decided to share with the group in case someone found it useful. Its also the first time I’ve uploaded any of my scripts to Github.


plus someone may have tips on how to make your scripts more elegant : )

Mohammad Rahmani

unread,
Oct 24, 2019, 4:49:45 AM10/24/19
to tiddl...@googlegroups.com
Hi,
 Welcome to the group! 
In most browsers when you save .html it creates file(01).html, file(02).html and so ...
Then how your saving/backup work on these files!

Have you tried Timi from Riz on firefox?


Best wishes
Mohammad


--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/b1cdbd3c-8bd6-43d3-b23d-263670ca23af%40googlegroups.com.

Alanp101

unread,
Oct 24, 2019, 5:01:28 AM10/24/19
to TiddlyWiki
Hi Mohammad

Browsers only add the (01), (02) if the file is already there in the first place. 

The idea is to run the script after you have saved the wiki and the script will move it to your designated location (such as a folder on dropbox). The next time you save the wiki there won't be a copy in the download folder. 

When the moves are done the script  lists all files in the download folders with an html extension. Manually reviewing this after you've run the script will show if you have a (01).. html in there. I tend to keep my download folder clear of any html's for this purpose. 

Kind Regards 

On Thursday, October 24, 2019 at 9:49:45 AM UTC+1, Mohammad wrote:
Hi,
 Welcome to the group! 
In most browsers when you save .html it creates file(01).html, file(02).html and so ...
Then how your saving/backup work on these files!

Have you tried Timi from Riz on firefox?


Best wishes
Mohammad


On Thu, Oct 24, 2019 at 11:48 AM Alanp101 <al.pr...@gmail.com> wrote:

Hi. I found TiddlyWiki about two years ago and have been using it ever since for both work and at home.


I work in an IT operations team and manage a few shared wikis used across my team as well as a number or private ones. At home I used one while I was going through the process of buying my first house and I found it invaluable to the process and the months that followed. I’m sure I don’t need to elaborate further on how helpful TiddlyWiki has been to this group.

I’ve been following this group for some time as well but this is my first time posting. Not being a developer, I feel I have little new to offer the group other than my appreciation of all the plugins and useful information I’ve come across in the group.


The main hurdle I had to overcome on using TiddlyWiki is how it saves. In all instances I use the single file version of the wiki and host in on servers local to the company/ myself. None of the solutions advertised really appealed to me or was compatible with my works security policies. Instead I developed a simple batch script for each wiki to back up the original copy and put the new file in place.

As the number of wikis I began to want/ need increased I decided to rewrite it to have one script set to work on multiple wikis. It’s not the most elegant solution in the world and its not without its problems; the main one being you need to manage the clear downs of the backups yourself or the amount of them gets out of hand depending on the amount of times you update the wiki.


I’ve uploaded the scripts to github and decided to share with the group in case someone found it useful. Its also the first time I’ve uploaded any of my scripts to Github.


https://github.com/alanp101/TiddlyUpdater-script

--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddl...@googlegroups.com.

PMario

unread,
Oct 24, 2019, 6:19:15 AM10/24/19
to TiddlyWiki
Hi Alanp101,

Welcome to the club! ... Thanks, that you share your work with us.

That's the first step, that allows others to contribute. Tools haven't to be perfect. They have to be good enough, to get work done!

If users know them, they may have new ideas for improvement. Launching a post here lets that happen!

have fun!
mario


Mohammad Rahmani

unread,
Oct 24, 2019, 6:30:31 AM10/24/19
to tiddl...@googlegroups.com
Thank you Alanp.
This is a useful and simple!
You may also have a look at polly from Mark and Josiah.

--Mohammad


Best wishes
Mohammad


To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/fc892132-9f89-4f32-b214-eece890951ca%40googlegroups.com.

A Gloom

unread,
Oct 24, 2019, 6:29:43 PM10/24/19
to TiddlyWiki
Mohammad,

This is a useful and simple!
You may also have a look at polly from Mark and Josiah.

Do you have a link to that?

PMario

Tools haven't to be perfect. They have to be good enough, to get work done!

that's how we operate at the mad coding lab-- it works!1! ... or at least it seems to...

Scott Kingery

unread,
Oct 24, 2019, 11:10:15 PM10/24/19
to TiddlyWiki
Polly can be found here: https://github.com/Marxsal/polly

A Gloom

unread,
Oct 25, 2019, 12:43:34 AM10/25/19
to TiddlyWiki
TY Scott!

A blurb about Polly-- "Batch file system to restore TiddlyWiki files from download directory to their original home directory"
Reply all
Reply to author
Forward
0 new messages