Re: rotation.schedule bug

[email protected] Fri, 06 Jan 2006 16:14:10 +0100
Newsgroups gmane.comp.sysutils.backup.sarab
Message-ID <[email protected]>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Tristan!

Thanks for the nice software :)

> Thanks for the email.  I am the creator of SaraB, yet I was not
> aware that it was included in any distributions.  It is exciting to
> hear that SaraB is in Gentoo, although I am not sure how it got
> there.  Do you know if SaraB is any other distros?

Sarab has been included in Gentoo in July by Matthew Kennedy
<[email protected]> who maintains the software there. Guess there
are others that also like the software :) I actually don't know if
sarab has been included in any other distro. I assumed that it is
available in SuSE from another post to this list, but I was probably
mistaken.

> As for the patch, it may not be necessary.  If you haven't heard,
> there is a fork of SaraB that will hopefully be released soon that
> improves on SaraB in everyway.  I am a co-developer of this new
> project, however the primary developer is a much better coder than
> I.  I will talk with him again about releasing it soon.

I have seen it being mentioned on the mailing list. But that was a
while ago, so I was not certain if the project is still alive. Good to
hear.

Nevertheless I would suggest to release an intermediate, patched
version of the original sarab. While the new version is probably much
nicer and has more features, the old version is a tested piece of
software. Since it only requires three or four minor patches I think
it would be real releasing 0.2.3 in addition to the new thing.

Cheers

Gunnar

>
> Thanks,
>
> Tristan Rhodes
>
> Gunnar Wrobel wrote:
>
>> Hello!
>>
>> I have been using sarab-0.2.2 for a while on Gentoo now. Since I am
>> using several archives I also created several rotation schedules. But
>> there is a bug in the rotation function that makes this impossible. I
>> attached a fix for it.
>>
>> Is there any chance that there will be a release of a 0.2.3 version?
>> Since sarab is included in several distributions it would be nice if the
>> accumulated patches would be made available as an official version.
>>
>> Cheers
>>
>> Gunnar
>>  
>>
>> ------------------------------------------------------------------------
>>
>> diff -Naur sarab.orig/sarab.sh sarab/sarab.sh
>> --- sarab.orig/sarab.sh    2006-01-04 09:45:36.000000000 +0100
>> +++ sarab/sarab.sh    2006-01-04 09:49:43.000000000 +0100
>> @@ -34,7 +34,7 @@
>> function rotate {
>>     lines=$(cat $SARAB_ETC/$ROTATION_SCHEDULE | wc -l)
>> -    firstline="$(head -n 1 $SARAB_ETC/rotation.schedule)"
>> +    firstline="$(head -n 1 $SARAB_ETC/$ROTATION_SCHEDULE)"
>>
>>     # Copy all but the first line back into rotation schedule
>>     tail -n $(expr $lines - 1) $SARAB_ETC/$ROTATION_SCHEDULE > $SARAB_ETC/rotation.schedule.temp
>>  
>>
>
>

- -- 
Gunnar Wrobel                    Gentoo Developer
__________________C_o_n_t_a_c_t__________________
Mail: [email protected]
WWW:  http://www.gunnarwrobel.de
IRC:  #gentoo-web at freenode.org
- -------------------------------------------------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)

iD8DBQFDvok24ZakmYCb60sRAsdAAJ4zybnbI9VNcAdp9gKEogH6hMRNMACdFC/8
UKP7Kv2g3sQeX1PkJ9xNdVY=
=d6sP
-----END PGP SIGNATURE-----



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click