Ricardo Acras
Ricardo Acras

Reputation: 36244

Recovering backup from wrong version

I have a backup file that I cannot confirm but I am 99% positive it was created using version 2.1. Now I try to recover it using version 2.1.4.18393 using this command:

  c:\users\me\documents> "c:\Program Files\Firebird\Firebird_2_1\bin\gbak.exe" -C tmp.gbk "localhost:c:\users\me\documents\sgl.fdb" -v -user sysdba -password masterkey

and I get this error:

  gbak: ERROR:Expected backup version 1..8.  Found 9

I tried to recover using firebird 2.5 but got

  gbak: ERROR:Malformed string
  gbak:Invalid metadata detected. Use -FIX_FSS_METADATA option.

How can I recover this file?

Upvotes: 1

Views: 15319

Answers (1)

rstrelba
rstrelba

Reputation: 1954

For example gbak -r -v -user sysdba -pas xxx -fix_fss_metadata win1251 -fix_fss_data win1251 db.gbk db.fdb

PS win1251 is my database charset

Upvotes: 17

Related Questions