Subject | Re: [firebird-support] Determining what Firebird version was used to create a backup |
---|---|
Author | Ann W. Harrison |
Post date | 2010-11-24T20:01:03Z |
On 11/24/2010 2:55 AM, Maya Opperman wrote:
If it's gbak, you should never try to restore a database
with a version of gbak that's newer than the running Firebird.
So if the server is 2.1.x, don't use the 2.5 gbak. You can
use the 2.1.x gbak to backup or restore a database on a 2.5
server.
If you use V2.5.x gbak to backup a database and try to restore
the file with a 2.1.x gbak, you will (or certainly should)
get an immediate error of something like "expected gbak version
1, 2, 3, 4, 5, or 6 encountered 8". The gbak program version,
which you check with the -z switch, will have the same format
as the version of Firebird with which it was distributed.
The actual backup version reflects changes to the backup
format.
None of them should hang.
Best regards,
Ann
>Are you using gbak or nbackup?
> Apart from attempting to restore a backup on the wrong version of Firebird, and ending up with a restore hanging, is there any way of telling by looking at a Firebird backup file, what version of Firebird was used to create it?
>
If it's gbak, you should never try to restore a database
with a version of gbak that's newer than the running Firebird.
So if the server is 2.1.x, don't use the 2.5 gbak. You can
use the 2.1.x gbak to backup or restore a database on a 2.5
server.
If you use V2.5.x gbak to backup a database and try to restore
the file with a 2.1.x gbak, you will (or certainly should)
get an immediate error of something like "expected gbak version
1, 2, 3, 4, 5, or 6 encountered 8". The gbak program version,
which you check with the -z switch, will have the same format
as the version of Firebird with which it was distributed.
The actual backup version reflects changes to the backup
format.
None of them should hang.
Best regards,
Ann