|
AnyDAC
|
The class implementing Firebird-only restored database service.
uADPhysIB
Use the TADIBNRestore component to add a Firebird-only a restoring database from backup capability to an application. This is a programmatic method to invoke the nbackup tool as a thread in the DB server process to restore a database.
To restore a database from a DB backup an application should:
Other properties and methods are optional.
Paths of backup files are relative to the server. Because the TADIBNBackup restores backup on the DB server host, the DB Service Manager reads backup files on the server host.
To produce a DB restore log an application should set Verbose to True and use OnProgress event.
Read
http://www.firebirdsql.org/manual/nbackup.html for more details.
TADIBNRestore = class(TADIBService);
ADIBNRestore1.DriverLink := ADPhysIBDriverLink1; ADIBNRestore1.UserName := 'sysdba'; ADIBNRestore1.Password := 'masterkey'; ADIBNRestore1.Host := 'db_srv_host'; ADIBNRestore1.Protocol := ipTCPIP; ADIBNRestore1.Database := 'e:\ib\addemo.fdb'; ADIBNRestore1.BackupFile := 'e:\ib\addemo.backup'; ADIBNRestore1.Restore;
|
What do you think about this topic? Send feedback!
|