Re: Dar slice numbering

Wiebe Cazemier <[email protected]> Sun, 24 Dec 2006 21:30:29 +0100
Newsgroups gmane.comp.sysutils.backup.dar.general
Message-ID <[email protected]>
Coincidently, I just field a feature request for this at the tracker:

http://sourceforge.net/tracker/index.php?func=detail&aid=1619638&group_id=65612&atid=511615

Summarized, I suggested either an option to set the number of digits, or just
use four. 9999 slices should be enough for everybody, and I don't think having
slices like 0001 is ugly. Blender, for instance, uses this for it's
framenumbering, and it's very clean in my opinion. I know that in theory you
can surpass it, but is that really a problem? No one is going to make a backup
of 10.000 slices.


On Saturday 23 December 2006 20:45, Denis Corbin wrote:

> Moreover, at reading time, dar would have to look for slice's name 1 or
> 01 or 001 or 0001 or 00001 and so on, up to how much leading zero?
> Actually dar has no limit on the number of possible slices...

If you would agree on four, it should be easy. If you think 9999 isn't enough,
having the option I suggested should make things easy for dar.

> 
> There is a way to address your restricted need to have slice named on
> two digits, it relies on a script to provide to dar thanks to its -E option.
> 
> This script renames the slice appending the leading zero you request,
> and adds a symlink on it, named by the original slice name. You can add
> to your .darrc file for you don't have to change the way you are using dar.

That's not really convenient if backing up to a medium which doesn't support
symlinks. Additionally, I wrote a script to encrypt each slice with GPG and
prepare the slices for easy DVD burning. Having symlinks in there complicates
matters.

> Yet another solution if you want to have slices listed in order while 
> you don't have them renamed at all is to sort them by creation date

It can work in practice, also in K3b which I use to burn my slices, but it's
just a workaround.


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV