Modification to handle dar's exit code 11
"Michael Leies" <[email protected]> Sun, 8 Apr 2007 23:39:44 +0200
| Newsgroups | gmane.comp.sysutils.backup.sarab |
|---|---|
| Message-ID | <[email protected]> |
------=_Part_67630_1367098.1176068384822 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi all, Thanks for Sarab and Dar!! I've modified sarab.sh to better handle Dar's exit codes, well at least exit code 11, perhaps it will be of use to some one else. My backups were failing because a server process was updating a log file during a backup. It only happened occasionally as the server process only logs once a minute, and i'm not backing up a whole lot of stuff. Anyway when a file is modified Dar exits will error code 11, but the Dar archive is still created. Sarab was just aborting on any code other than 0, so i modified it a bit to complete the backup on error code 11. Its possible the file which caused the error 11 will be in a bad state, but the rest of the backup is ok, so for me it makes sense for sarab not to abort. the modified script is attached, the original is version 0.2.2. you may need to excuse my script coding as, i don't play with shell scripts very often. michael leies ------=_Part_67630_1367098.1176068384822 Content-Type: application/x-sh; name=sarab.sh Content-Transfer-Encoding: base64 X-Attachment-Id: f_f0a0gm9d Content-Disposition: attachment; filename="sarab.sh" ------=_Part_67630_1367098.1176068384822 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 ------=_Part_67630_1367098.1176068384822 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 ------=_Part_67630_1367098.1176068384822--