Subject RE: [firebird-support] How to use NBackup?
Author Leyne, Sean
Fabiano,

> Is there some detailed documentation about how to use and how does it
> work?

There is a read me in the doc folder.


> I'm using it and i still have some doubts:
>
> - If i create an automatic script to run at some regular interval,
> does this script have always to inform the required level for the
> database?

Yes, but this is logical. NBackup allows you to create full copy
backups (level =0) as well as up to 9 levels of incremental backups
(hourly, daily, weekly, monthly, yearly). So you need to indicate which
type of backup you want to create.


> - If i implement a kind of auto-incremented value for the level
> (storing it in a file, for example), let's suppose this script runs,
> increment the level and, when calling nbackup, i have some problem and
> the backup doesn't happens. Next time it runs, my script level is
> greater than the expect database level. Does it means in this case my
> script will never run again until i correct the level manually?

Don't do that -- create different jobs which run at different times and
keep your life simple.


> - Is there a way to retrieve the current database backup level?
>
> - Is there a way to ask nbackup to use the next level automatically,
> without knowing it?
>
> - It seems the level is a information pertinent to each database. Does
> it means i need always to run nbackup from the same location (supose i
> have a level counter in the machine that does the backup)?

You have misunderstood the nature/function of backup levels.


> - Does nbackup runs over remote databases?

NO!

> More comming:
>
> - If i do a backup/restore with gbak does the level returns to zero?

Yes. The information of previous nbackups is specific to a database, it
does not survive and gbak restore.

> - Does nbackup needs some ODS change? Is it possible to use it with FB
> 1.5 databases? It's a very usefull tool, and i'd like to use it now,
> without needing to wait 2.0 final release.

NBackup only works with ODS 11 (v2.0) databases, there were a number of
changes to the page headers required for the functionality as well as
changes to the engine.

> - I presume if my original database have some corrupt index or data,
> nbackup will backup it too, right?

Think of NBackup as a file copy operation (with a lot of intelligence)
-- if you copied a db file with a corrupt index, would the new file also
have the same corruption? (Rhetorical question)... Answer: YES


Sean