Re: Wrong Hanoi backup scheme

Hiran Chaudhuri <[email protected]> Sat, 20 Feb 2010 15:05:37 +0100
Newsgroups gmane.comp.sysutils.backup.sarab
Message-ID <1266674737.7853.2.camel@silver>
Hi, Martin.

Thank you for your comments.

In some way I inherited the Sarab project and have not checked all the
items in there, so you may very well be right with the wrong toh backup
scheme. I'll check on that and probably make use of the code supplied by
you.

Do you make use of the sarab script so far?

Hiran


Am Dienstag, den 16.02.2010, 16:27 +0100 schrieb Martin Zuther:
> Hi!
> 
> I have just had a look at SaraB because I want to use DAR and like the 
> idea of cycling backups.  On doing that, the Hanoi rotation examples 
> struck me as wrong.  For example, the file "toh-3-tapes" currently has 
> the following contents:
> 
> A
> B
> A
> C
> A
> B
> A
> D
> A <-- that and the following lines shouldn't be here
> B
> A
> C
> A
> 
> But in my opinion, it should read as:
> 
> A
> B
> A
> C
> A
> B
> A
> D
> 
> I did a little research (http://www.computer-repair.com/Backup.htm,
> http://en.wikipedia.org/wiki/Backup_rotation_scheme, and others), and it 
> seems that I am right.
> 
> I have thus changed the file "generate_toh.sh" (it needs to cut off more 
> than *one* line!) and cleaned up the code so it runs on current versions 
> of bash.  As a side note, you'll also have to change EOL encoding of 
> this file from "DOS" to "LINUX".  I was too lazy to write a recursive 
> function, so I have put "bc", a shell calculator, to good use. 
> Moreover, I have updated all the "toh_X_tapes" files so they reflect the 
> change.
> 
> Please find the patch attached.  I'm yearning for comments... ;)
> 
> Best regards,
> 
> Martin
> --
> www.mzuther.de
> www.radix-musik.de
> 
> ------------------------------------------------------------------------------
> SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
> Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
> http://p.sf.net/sfu/solaris-dev2dev
> _______________________________________________ SaraB-discuss mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/sarab-discuss


------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev