Start Firebird server and run the following commands:
gfix.exe -v -full -user SYSDBA -pass masterkey path_to_your_database
gfix.exe -mend -user SYSDBA -pass masterkey path_to_your_database
gbak -b -v -user SYSDBA -pass masterkey path_to_your_database path_to_backup
Try to run them all, even if gfix shows errors.