Subject Re: [ib-support] Re: How to assure backup is OK
Author Artur Anjos
Hi Ivan

Yes, it returns a errorlevel, but no numeric error messages. If you need to
parse a text file (such as the log that gbka creates) it's much easy to
parse a error code than to parse a string code.

Artur


----- Original Message -----
From: "Ivan Prenosil" <prenosil@...>
To: <ib-support@yahoogroups.com>
Sent: Wednesday, August 14, 2002 11:53 AM
Subject: Re: [ib-support] Re: How to assure backup is OK


> > From: Artur Anjos
> > Problem: even if GBak ends ok, we are not sure that we have a workable
> > backup. We must restore the file, and check for any error in that
restore.
> >
> > One of my problems is that gbak does not return any numeric error codes
(I
> > use to post this problem often in firebird-devel, but no single soul
have
> > take a moment to answer me yet). It's very difficult to parse the result
> > file for a restore searching for a list of errors, so I check the result
log
> > just for 'Going Home' at the end.
>
> But GBAK does return errorcode. On Windows you can test it like
> GBAK -C ....
> IF ERRORLEVEL 1 GOTO ...
>
> Ivan
> http://www.volny.cz/iprenosil/interbase
>
>
> Yahoo! Groups Sponsor
> ADVERTISEMENT
>
>
>
> To unsubscribe from this group, send an email to:
> ib-support-unsubscribe@egroups.com
>
>
>
> Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
>
>