Subject | Re: [firebird-support] monitoring of gbak |
---|---|
Author | Stefan Heymann |
Post date | 2011-07-22T12:46:39Z |
>>> I can't recall if gbak returns an exit error code if something weirdOn Windows, it also returns an ERRORLEVEL > 0 when something has gone
>>> happens,
>> On Linux, it returns zero for all ok and 1 for something bad happened.
wrong.
>>> but to check if a backup is valid, the only thing you can do isA Backup can fail when there are physical errors in the database. A
>>> to restore the backup and see if this process goes through. This is
>>> something I do for critical databases/backups.
>> Always good advice. There is always a possibility that the backup
>> worked, but the file could still be corrupt. :-(
Restore can fail when there are logical errors in the database (like
NULL values on a NOT NULL field). So to be 100 % safe that a database
is intact you must regularly backup AND restore it ...
Regards
Stefan