Restoring a backup to a running database
One of the restore options in the gbak
utility (gbak -rep[lace_database]
) allows you to restore a gbak file over an existing database.It is possible for this style of restore to proceed without warning while users are logged in to the database.Database corruption is almost certain to be the result.
Note
|
Notice that the shortest form of this command is These changes have been made because many users thought that the |
Warning
|
Be aware that you will need to design your admin tools and procedures to prevent any possibility for any user (including |
If is practicable to do so, it is recommended to restore to spare disk space using the gbak -c
option and test the restored database using isql
or your preferred admin tool.If the restored database is good, shut down the old database (you can use the gfix
command-line tool for this;see Firebird Database Housekeeping Utility (HTML) or Firebird Database Housekeeping Utility (PDF)).Make a filesystem copy of the old database just in case and then copy the restored database file(s) over their existing counterparts.