Subject | Checking gbak results |
---|---|
Author | Tetram Corp |
Post date | 2009-05-11T12:46:27Z |
Hi,
AFAIK, there's no returned value with gbak (as service) saying "ok,
backup/restore done" or "error during backup/restore" (for any reason)
So I wanted to know if my method is correct or not.
Actually, when I do a backup/restore with gbak, I'm asking for verbose
and check the last line returned.
In case of backup, I'm looking for "gbak: closing file, committing, and
finishing." and in case of restore "gbak: finishing, closing, and going
home".
So far so good.
But my question is: is it always correct, or are there cases where I
could have those lines in spite of an error during backup or restore?
If my method is not correct, what is the best way to know if
backup/restore was ok or not (before trying to restore or connect to the
database)?
Thierry
AFAIK, there's no returned value with gbak (as service) saying "ok,
backup/restore done" or "error during backup/restore" (for any reason)
So I wanted to know if my method is correct or not.
Actually, when I do a backup/restore with gbak, I'm asking for verbose
and check the last line returned.
In case of backup, I'm looking for "gbak: closing file, committing, and
finishing." and in case of restore "gbak: finishing, closing, and going
home".
So far so good.
But my question is: is it always correct, or are there cases where I
could have those lines in spite of an error during backup or restore?
If my method is not correct, what is the best way to know if
backup/restore was ok or not (before trying to restore or connect to the
database)?
Thierry