|Subject||Re: [ib-support] Re: How to assure backup is OK|
> From: Artur AnjosBut GBAK does return errorcode. On Windows you can test it like
> 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.
GBAK -C ....
IF ERRORLEVEL 1 GOTO ...