Subject Re: [firebird-support] Yecchh - 8.5GB corrupted db
Author Alexey Kovjazin
Hello, Bob!

Your error message means the physical corruption of your database - some
index pages (with type 7) will be written instead data pages (5). Why - I
cannot say, this error is rather seldom and still elusive both in InterBase
and Firebird.
I think it is not a heavy corruption.

To repair, follow these step:
gfix -v -full ...
gfix -mend ..
(To see errors you should look in firebird.log file, not to output.)

After that try to backup without garbage collecting

gbak -b -g -v ...

and after that restore

gbak -c -v ...

If you want to know more, you can find a lot of useful links here

Sincerely yours,
Alexey Kovjazin /