[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Suggest/Wish re. numbered backup

From: Paul E Condon
Subject: Suggest/Wish re. numbered backup
Date: Mon, 26 Jan 2009 14:26:30 -0700
User-agent: Mutt/1.5.18 (2008-05-17)

Suggestion/Wish in re. numbered backup (in use in cp and mv and
possible elsewhere):

When called on to rename a file with the .~N~ extension, the software
must search for prior numbered backups under the given filename. When
the largest number it finds is '9', it roles over to .~10~ . This we

My suggestion is that the software also rename the earlier backup
files as follows: In each name, insert the digit zero (0) in front of
the digit [1-9].  This will preserve the correct display order of the
backups in a simple invocation of "ls -l" . This will make for a
more cleanly ordered display up to 99 backups. 

As a further suggestion, this idea can be extended to insert 99 zeros
in 99 files when the 100th backup is done. And, of course, 999 zeros
in 999 files when the 1000th backup is done, etc. The average cost of
executing these additions is, I think, very small, as the software is
already doing all the preliminary work of directory lookups to
accomplish its existing numbering behavior.

You might also consider having an option to number in hexidecimal, but
I prefer decimal.

Thanks for your good work.
Paul E Condon           

reply via email to

[Prev in Thread] Current Thread [Next in Thread]