[tw] Re: [TWC] LessBackupsPlugin alternative for rotating backup

2016-05-19 Thread BJ
for what you say : if (config.options.chkOneADayBackUpFile==true) { var x = (new Date()).getMinutes(); backupPath += (x<10?'0':x<20?'1':x<30?'2':x<40?'3':x<50?'4':'5')+ "." + "html"; } cheers B On Tuesday, May 17, 2016 at 1:15:20 PM UTC+1, julien23

[tw] Re: [TWC] LessBackupsPlugin alternative for rotating backup

2016-05-17 Thread julien23
BJ backups only occur when you save the tiddlywiki > sure but then simplyLessBackups renames backup files like : *index.20160517*.0709301140*.html* I would like them renamed like : *index*.20160517.07*0*9301140*.html* To keep only the minutes decades. Is this explication more specific ?

[tw] Re: [TWC] LessBackupsPlugin alternative for rotating backup

2016-05-16 Thread BJ
I don't understand what you mean - backups only occur when you save the tiddlywiki. On Monday, May 16, 2016 at 3:57:40 PM UTC+1, julien23 wrote: > > BJ, > Thanks > > Nows it is working. > > How can I modify this code to have 1 backup /10 minutes ? > if

[tw] Re: [TWC] LessBackupsPlugin alternative for rotating backup

2016-05-16 Thread julien23
BJ, Thanks Nows it is working. How can I modify this code to have 1 backup /10 minutes ? if (config.options.chkOneADayBackUpFile==true) backupPath += (new Date()).convertToMMDDHHMMSSMMM().replace (/(.*)\.(.*)/,"$1") + "." + "html"; Objective is a 6 backups rotating pattern like

[tw] Re: [TWC] LessBackupsPlugin alternative for rotating backup

2016-05-16 Thread BJ
type copying it from this url https://raw.githubusercontent.com/buggyj/tiddlywikiplugins/master/simplyLessBackups.js On Monday, May 16, 2016 at 10:44:19 AM UTC+1, BJ wrote: > > what version of tiddlywiki are you using? > > On Monday, May 16, 2016 at 8:38:57 AM UTC+1, julien23 wrote: >> >> Hi BJ

[tw] Re: [TWC] LessBackupsPlugin alternative for rotating backup

2016-05-16 Thread BJ
what version of tiddlywiki are you using? On Monday, May 16, 2016 at 8:38:57 AM UTC+1, julien23 wrote: > > Hi BJ > > Thank you for help. > > I have an issue with your code. > > [PluginManager] says : > >> Error: SyntaxError: missing ) after formal parameters >> > > Win7x64 > FF 46.0.1 >

[tw] Re: [TWC] LessBackupsPlugin alternative for rotating backup

2016-05-16 Thread julien23
Hi BJ Thank you for help. I have an issue with your code. [PluginManager] says : > Error: SyntaxError: missing ) after formal parameters > Win7x64 FF 46.0.1 TiddlyFox 1.0alpha18.1 Any clue ? Regards Julien On Wednesday, May 11, 2016 at 3:56:34 PM UTC+2, BJ wrote: its a tiddlywiki

[tw] Re: [TWC] LessBackupsPlugin alternative for rotating backup

2016-05-11 Thread BJ
its a tiddlywiki classic plugin - it needs to be copied into a new tiddler and tagged with sytemConfig On Wednesday, May 11, 2016 at 1:45:41 PM UTC+1, prog...@assays.tv wrote: > > BJ, Sounds great, looks erm ... like computer code. HOW does a mortal use > it? :-) Josiah, x > > BJ wrote: >> >>

[tw] Re: [TWC] LessBackupsPlugin alternative for rotating backup

2016-05-11 Thread progetti
BJ, Sounds great, looks erm ... like computer code. HOW does a mortal use it? :-) Josiah, x BJ wrote: > > Hi Julien, > I wrote a simple backup plugin that works when using tiddlyfox: > > > https://github.com/buggyj/tiddlywikiplugins/blob/master/simplyLessBackups.js > > maybe it could be of help

[tw] Re: [TWC] LessBackupsPlugin alternative for rotating backup

2016-05-11 Thread BJ
Hi Julien, I wrote a simple backup plugin that works when using tiddlyfox: https://github.com/buggyj/tiddlywikiplugins/blob/master/simplyLessBackups.js maybe it could be of help to you, https://github.com/buggyj/tiddlywikiplugins/blob/master/simplyLessBackups.js all the best BJ On Wednesday,