[TWC] Append Username to backup file name

31 views
Skip to first unread message

julien23

unread,
Aug 16, 2016, 6:22:50 AM8/16/16
to TiddlyWiki
Hi all

[TWC] LessBackupsPlugin alternative for rotating backup
https://groups.google.com/d/topic/tiddlywiki/wkT3wGZtd-4/discussion

helped me a lot to reduce errors in real time synced folders.
But it also increase a lot the number of files to be synced.

I am thinking of using the username in the backup file like /backup/index_jbo.html

How can I fetch an use "Username" to modify the following code ?

        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";}


Regards

Julien

 


Reply all
Reply to author
Forward
0 new messages