Subject | Re: gfix and gbak return codes in bash |
---|---|
Author | olivier_lucaes |
Post date | 2004-04-15T20:42:48Z |
Hello Artur,
thanks for your answer.
do you mean i should do something like
../gbak -parameters..... > gfix_result.log
and grep gfix_result.log ?
I think i tried this during my tests but did not get any result
inside the file (was always empty).
I will try again and let you know.
All the best
Olivier
--- In firebird-support@yahoogroups.com, Artur Anjos <artur@a...>
wrote:
thanks for your answer.
do you mean i should do something like
../gbak -parameters..... > gfix_result.log
and grep gfix_result.log ?
I think i tried this during my tests but did not get any result
inside the file (was always empty).
I will try again and let you know.
All the best
Olivier
--- In firebird-support@yahoogroups.com, Artur Anjos <artur@a...>
wrote:
> olivier_lucaes wrote:i'm
> > Again, i do not have a large Linuxw experience, therefore maybe
> > doing a mistake anywhere... Any idea or tip to help me will begrep it
> > greatly appreciated.
>
> Don't rely on error code.
> What you must do is redirect the output from gbak to a file, and
> for 'going home'. When gbak finishes without an error, you willsee the
> last line of the output as:You
>
> gbak: finishing, closing, and going home
>
> Tail the output, and grep this line to make sure it is ok.
>
> Notice that this will not assure that you have a workable backup.
> must restore (with gbak) the result file to a different place, and
> verify the restore with the same method.
>
> Artur Anjos