Restoring incremental backups
When restoring incremental backups, you must specify the entire chain of backup files, from level 0 through the one you wish to restore.The database is always built up from the ground, step by step.(It is this stepwise adding until the database is restored that gave rise to the term incremental backup.)
The formal syntax is:
nbackup -R database [backup0 [backup1 [...] ] ]
So, restoring the level-2 backup from the previous example goes as follows:
C:\Data> nbackup -R inventory.fdb inventory_1-Mar-2006.nbk inventory_3-Mar-2006.nbk inventory_3-Mar-2006_2.nbk
Of course the line has been split here for layout reasons only — in reality you type the entire command and only hit kbd:[Enter] at the end.
-
Because it is not known beforehand how many filenames will follow the
-RESTORE
switch (as we don’t specify a level when restoring), nbackup considers all arguments after the-RESTORE
to be names of backup files.It is for this reason that no other parameter may follow the list of filenames. -
There is no formal limit to the number of backup levels, but in practice it will rarely make sense to go beyond 3 or 4.