Firebird Docset → Firebird Database Docs → Firebird's nbackup tool → nbackup features - an overview |
With nbackup, you can perform two different groups of tasks:
Making and restoring of both full and incremental backups. An incremental backup only contains the mutations since some specific previous backup.
Locking the main database file so you can subsequently back it up yourself with copying or backup tools of your own choice. In this mode, nbackup doesn't back up anything; it just creates the conditions under which you can safely make the backup yourself. There's a provision for restoring here, too.
Both modes can operate on an active database, without hindering connected users. The backup created will always reflect the state of the database at the beginning of the operation. In these respects nbackup doesn't differ from gbak.
Both modes: high speed (as high as hardware and OS will allow), because nbackup doesn't look at the actual data. In backup mode the contents are written more or less blindly to the backup file.
Backup/restore mode: time and disk space savings, because you don't need to make a full backup every time. This can make a huge difference with databases in the gigabyte range.
Lock/unlock mode: total freedom in your choice of backup, copy, and/or compression tools.
nbackup will not sweep and compact your database the way gbak does.
You can't change the database owner with an nbackup backup/restore cycle, like you can with gbak.
nbackup can't make transportable backups, that is: backups you can restore on an incompatible platform or under another server version.
At this moment, nbackup should not be used on multi-file databases.
nbackup can only back up local databases.
We'll discuss nbackup's various functions extensively in the following sections.
Firebird Docset → Firebird Database Docs → Firebird's nbackup tool → nbackup features - an overview |