If when a backup database in the name of the backup file actually is a file name base, but formally different, the database file is deleted.
Example for reproduction:
gbak -b localhost:d:\data\debug.fdb d:\data\debug.fdb -user SYSDBA -password masterkey
gbak: ERROR:cannot open backup file d:\data\debug.fdb
gbak:Exiting before completion due to errors