Firebird Documentation IndexFirebird 2.0.6 Release NotesKnown Compatibility Issues → Command-line Tools
Firebird Home Firebird Home Prev: Configuration ParametersFirebird Documentation IndexUp: Known Compatibility IssuesNext: Performance

Command-line Tools

Change to gbak -R Semantics

Change to gbak -R Semantics

An important change has been done to prevent accidental database overwrites as the result of users mistakenly treating “-R” as an abbreviation for “restore”. gbak -R was formerly a shortcut for “-REPLACE_DATABASE”. Now the -R switch no longer restores a database by overwriting an existing one, but instead reports an error.

If you actually want the former behaviour, you have two alternatives:

  • Specify the full syntax gbak -REPLACE_DATABASE. There is a new shortcut for the -REPLACE_DATABASE switch: gbak -REP

    OR

  • Use the new command -R[ECREATE_DATABASE] OVERWRITE. The -R shortcut now represents the -R[ECREATE_DATABASE] switch and the OVERWRITE keyword must be present in either the full or the abbreviated form.

Warning

If you use the full syntax, you are expected to know what this restore mode actually means and have some recovery strategy available if the backup subsequently turns out to be unrestorable.

Prev: Configuration ParametersFirebird Documentation IndexUp: Known Compatibility IssuesNext: Performance
Firebird Documentation IndexFirebird 2.0.6 Release NotesKnown Compatibility Issues → Command-line Tools