I did think about a new naming mechanism, that wouldn't need to know
that much about the filesystem as LessBackupsPlugin does.
LessBackupsPlugin needs to know, the file.date to decide, if it is
save to overwrite it. Without this info, it may overwrite several
backups by accident.

The mechanism, would limit the possible ammount of files, in a
different way than LBP. The backup numbering is like that

The 10 latest versions are numberd in that way: (where bak could be
optional)
bak-0-00-0
bak-0-00-1
…
bak-0-00-8
bak-0-00-9

If number 0-00-9 is reached, the next save will overwrite bak-0-00-0
(first loop) and create bak-0-01-0, the 10th backup file (see next
line)

bak-0-01-0 ... the 10th backup file.
bak-0-02-0 ... the 20th backup file.
…
bak-0-99-0 ... the 990th save file

If you reach number bak-0-99-0 (second loop) the next save will
overwrite bak-0-00-0 and create bak-1-00-0 (third very slow loop)
bak-1-00-0 .. 1000th save file.
bak-2-00-0 .. 2000th ...

So you do have 1000 saves but only  110 files.
2000 saves would be 111 files ...
3000 saves would be 112 files ...

So the number of files grows very slow from this point.

you'll have the 10 latest versions.
you'll have 100 files, that differ by 10 versions.
…

The only problem with this mechanism is, that you need to store some
loop state in a tiddler. eg:
first: 0 .. 9
second: 00 .. 99
third: 0 .. 9
if third shold be 10 start from the beginning, or go on, imo doesn't
matter.

--------

If you send a TW to a friend, this stat tiddler is no problem. Backup
numbering will still work. It will just start with "weird" numbers.

IMO there is only one problem. If you rename a backup eg: bak-0-01-0
to be the working version, it will start to overwrite eg: bak-0-02-0
if this one allready exists. This behaviour may be a problem.

@Jeremy
IMO this can'b be solved, without the help of tiddlyfox.

have fun!
-mario






-- 
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 http://groups.google.com/group/tiddlywiki?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to