Functions and parameters
The following table gives an overview of nbackup’s parameters.If the field “Added” is empty, the parameter has existed since nbackup’s introduction in Firebird 2.0.
Note
|
The long form in the “Option” column was introduced in Firebird 3.0.The long form will generally work in Firebird 2.5 and earlier, because the nbackup tool in Firebird 2.5 and earlier seems to ignore any characters after a matched short parameter.We recommend using the short form instead on Firebird 2.5 and earlier. The “Short” variant takes the same arguments as the long form, but these are left out of the table for brevity. |
Option | Short | Function | Added |
---|---|---|---|
|
|
Make level-level backup of database to file, since 4.0 guid selects the most recent backup of a read-only standby database, and backs up all changes since that backup |
|
|
|
Restore database from backup file(s) |
|
|
|
Lock database |
|
|
|
Unlock locked database |
3.0 |
|
|
Unlock locked database (deprecated since 3.0, use |
|
|
|
Unlock user-restored database |
|
|
|
Give size in database pages (with |
2.1 |
|
|
Suppress database triggers (with |
3.0 |
|
|
Suppress database triggers (deprecated since 3.0, use |
2.1 |
|
|
Direct I/O on/off (with |
2.1.4 |
|
|
Restore incremental backup(s) to existing database (can corrupt database when used incorrectly);requires |
4.0 |
|
|
Command to extract archives during restore;requires |
3.0 |
|
|
Preserve original replication sequence;requires |
4.0 |
|
|
Supply username (with |
|
|
|
SQL role name (with |
3.0 |
|
|
Supply password (with |
|
|
|
Fetch password from file (with |
2.5 |
|
|
Version info (by itself or with |
2.5 |
|
|
Help (switches off all other parameters) |
2.5 |
Depending on the chosen main function (-BACKUP
, -RESTORE
, -LOCK
, -UNLOCK
or -FIXUP
), nbackup may require different types of access to the database: a Firebird server connection, direct file access, or both.The following table gives the details:
Option | Function | Access |
---|---|---|
|
Backup |
server + file |
|
Restore |
file |
|
Lock |
server |
|
Unlock (undo |
server |
|
Unlock (undo |
server |
|
Unlock after user restore |
file |
Where server access is required (with -BACKUP
, -LOCK
and -UNLOCK
), the user must either provide a Firebird username and password (with -USER
and -PASSWORD
/-FETCH_PASSWORD
or through the environment variables ISC_USER
and ISC_PASSWORD
), or be admitted by the server on other grounds (e.g. as root under Posix or by trusted authentication under Windows).
Where filesystem access is required (with -BACKUP
, -RESTORE
and -FIXUP
), the user must have sufficient read and/or write privileges to the database file.
Where filesystem access is required exclusively (with -RESTORE
and -FIXUP
), the user need not have a Firebird login and a running Firebird server need not be present.
Please notice: The above table and text concern access to the database.Access to the backup file is — obviously — always on the filesystem level.