Restoring a full backup
A full backup is restored as follows:
nbackup -RESTORE database [backupfile]
For instance:
C:\Data> nbackup -RESTORE inventory.fdb inventory_1-Mar-2006.nbk
-
You don’t specify a level for a restore.
-
When restoring, the
-RESTORE
parameter must come last, for reasons that will become clear later. -
Instead of a database filename you may also use an alias.
-
If the specified database file already exists, the restore fails, and you get an error message.
-
Here too, you may omit the name of the backup file.If you do, nbackup will prompt you for it.(Attention! In Firebird 2.0.0 this “interactive restore” feature is broken, leaving you with an error message and a failed restore. Fixed in 2.0.1.)
-
Restoring works purely on the filesystem level and can even be done without a Firebird server running.Any credentials supplied via the
-USER
and-PASSWORD
parameters are ignored.The same goes for passwords read from a file.However, nbackup does try to read the password from the file if the-FETCH_PASSWORD
parameter is present, and if an error occurs, the entire operation is abandoned.