Fwd: SaRaB patch

"Tristan RHODES" <[email protected]> Thu, 21 Sep 2006 09:02:19 -0600
Newsgroups gmane.comp.sysutils.backup.sarab
Message-ID <[email protected]>
--=__PartFDD9A76B.1__=
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

I no longer support SaraB, but I wanted to pass along this patch that I
received.  I have not tested it in any way.

Tristan Rhodes

>>> Sylvain Beucler <[email protected]> 09/13/06 7:06 AM >>>
Hello,

I use SaRaB for a client and I configured it to only receive mails when

there is an error (no news = good news :))


I had to add the -Q option, which suppresses warnings on stderr about 
the lack of interactive terminal in cron jobs, at 2 places:
1) in sarab.conf:
DAR_COMMAND="$DAR_BINARY -Q --batch $SARAB_ETC/$SARAB_DCF -c
$DAR_CREATE 
--noconf"

2) in sarab.sh, when SaRaB tests the archive CRC (see attached patch)


I then redirect the standard output >/dev/null so as not to receive the

dar summary (but I still receive stderr, which is what I wanted).


You may want to use -Q in SaRaB as well :)

Thanks,

-- 
Sylvain

--=__PartFDD9A76B.1__=
Content-Type: application/octet-stream; name="diff"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="diff"

LS0tIHNhcmFiLnNofgkyMDA2LTA2LTMwIDA5OjUwOjUyLjAwMDAwMDAwMCArMDIwMA0KKysrIHNh
cmFiLnNoCTIwMDYtMDktMTIgMTE6MTM6MTYuMDAwMDAwMDAwICswMjAwDQpAQCAtMjIzLDExICsy
MjMsMTEgQEANCiAgICBlY2hvDQogICAgZWNobyAtbiAiVGVzdGluZyB0aGUgYXJjaGl2ZSBmb3Ig
ZXJyb3JzLi4uIg0KICAgIHZlcmJvc2UNCi0gICB2ZXJib3NlICIkREFSX0JJTkFSWSAtdCAkREVT
VElOQVRJT04vJFdPUktfRElSLyRCQVNFTkFNRSAtLW5vY29uZiINCi0gICAkREFSX0JJTkFSWSAt
dCAkREVTVElOQVRJT04vJFdPUktfRElSLyRCQVNFTkFNRSAtLW5vY29uZg0KKyAgIHZlcmJvc2Ug
IiREQVJfQklOQVJZIC1RIC10ICRERVNUSU5BVElPTi8kV09SS19ESVIvJEJBU0VOQU1FIC0tbm9j
b25mIg0KKyAgICREQVJfQklOQVJZIC1RIC10ICRERVNUSU5BVElPTi8kV09SS19ESVIvJEJBU0VO
QU1FIC0tbm9jb25mDQogICAgaWYgWyAiJD8iICE9ICIwIiBdOyB0aGVuDQogICAgICAgZWNobyAi
RVJST1I6IEVycm9yIHdoZW4gdGVzdGluZyB0aGUgYXJjaGl2ZS4gVGhlIGF0dGVtcHRlZCBjb21t
YW5kIHdhcy4uLiAiDQotICAgICAgZWNobyAiJERBUl9CSU5BUlkgLXQgJERFU1RJTkFUSU9OLyRX
T1JLX0RJUi8kQkFTRU5BTUUgLS1ub2NvbmYiDQorICAgICAgZWNobyAiJERBUl9CSU5BUlkgLVEg
LXQgJERFU1RJTkFUSU9OLyRXT1JLX0RJUi8kQkFTRU5BTUUgLS1ub2NvbmYiDQogICAgICAgZXhp
dCAxDQogICAgZmkNCiBmaQ0K

--=__PartFDD9A76B.1__=
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

-------------------------------------------------------------------------
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
--=__PartFDD9A76B.1__=
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
SaraB-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sarab-discuss

--=__PartFDD9A76B.1__=--