This is a discussion on Backups - tar exit status within the Linux Administration forums, part of the Linux Forums category; Tar is a great backup utility - except that it has only 2 exit statuses - 0 or 1, which isn't ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Tar is a great backup utility - except that it has only 2 exit statuses - 0
or 1, which isn't useful. Suppose you just get a warning - which sets the exit status to 1 - the backup is still fine. A catastrophic tape error leaving the backup useless still exits with 1, so what do people do about monitoring scripts to ensure success? PLEASE don't suggest another utility, unless its cpio (anyone know about the exit statuses of cpio?). I want to use tar because its free, scriptable, standard, etc. Thanks Graham Nicholls -- The answer's always "Yes". Now, what was the question? ----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==---- http://www.newsfeeds.com The #1 Newsgroup Service in the World! >100,000 Newsgroups ---= East/West-Coast Server Farms - Total Privacy via Encryption =--- |
|
|||
|
Graham Nicholls wrote:
> Tar is a great backup utility - except that it has only 2 exit statuses - > 0 > or 1, which isn't useful. Suppose you just get a warning - which sets the > exit status to 1 - the backup is still fine. A catastrophic tape error > leaving the backup useless still exits with 1, so what do people do about > monitoring scripts to ensure success? PLEASE don't suggest another > utility, unless its cpio (anyone know about the exit statuses of cpio?). > I want to use tar because its free, scriptable, standard, etc. > > Thanks > Graham Nicholls What warnings do you get? You should strive to make your operations warning free. Eric |