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 wrote:
>
> 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 ?
>
> Regards
>
> Julien
>
>
>
>
> On Monday, May 16, 2016 at 6:11:37 PM UTC+2, BJ wrote:
>>
>> I don't understand what you mean - backups only occur when you save the 
>> tiddlywiki. Do you mean maximum of one every ten minutes? (up to 6 an hour 
>> * 24)
>>
>> 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 (config.options.chkOneADayBackUpFile==true)
>>>             backupPath += (new Date()).convertToYYYYMMDDHHMMSSMMM().replace 
>>> (/(.*)\.(.*)/,"$1") + "." + "html";
>>>
>>> Objective is a 6 backups rotating pattern like :
>>>
>>>> index_00.html
>>>> index_10.html
>>>> ...
>>>> index_50.html
>>>>
>>>
>>> Looking forward to read from you
>>>
>>> Julien
>>>
>>>
>>> On Monday, May 16, 2016 at 4:20:37 PM UTC+2, BJ wrote:
>>>>
>>>> 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
>>>>>>
>>>>>> 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 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, [email protected] 
>>>>>>> wrote:
>>>>>>>>
>>>>>>>> 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 to you,
>>>>>>>>>  
>>>>>>>>>
>>>>>>>>>

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/7fe8399d-df9f-4e68-a37b-6bb2c1e51c47%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to