Subject Re: [firebird-support] incomplete backup file but gbak errors complaining about the connection
Author Helen Borrie
At 04:09 a.m. 26/02/2013, james_calfee wrote:

>I just noticed that when using gbak -r (Firebird 1.5) with the service manager, if the backup file is truncated or incomplete, this is the error:
>
>gbak: ERROR: Error reading data from the connection.
>gbak: Exiting before completion due to errors
>
>
>The backup file is on the same box as the restore file. Both files are local to the service manager but remote to the box where the gbak command was issued.

Just as expected...gbak is a client application...it passes a connection request and the services manager proceeds to try and do the restore. When the action is complete (i.e., exits for any reason), a status array is returned to the client app and the connection is terminated.

I hope this was just an experiment and you are really NOT using gbak -r on any database you care about. That's like jumping out of a plane and forgetting to pull the cord.


Helen Borrie, Support Consultant, IBPhoenix (Pacific)
Author of "The Firebird Book" and "The Firebird Book Second Edition"
http://www.ibphoenix.com/products/books/firebird_book
__________________________________________________________________