|
AnyDAC
|
The class implementing FB/IB service restoring a database from a backup.
uADPhysIB
Use the TADIBRestore component to add a restoring database from backup capability to an application. This is a programmatic method to invoke the gbak tool as a thread in the DB server process.
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 TADIBRestore 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.
The TADIBNRestore component should be used to restored an incremental backup.
TADIBRestore = class(TADIBService);
ADIBRestore1.DriverLink := ADPhysIBDriverLink1;
ADIBRestore1.UserName := 'sysdba';
ADIBRestore1.Password := 'masterkey';
ADIBRestore1.Host := 'db_srv_host';
ADIBRestore1.Protocol := ipTCPIP;
ADIBRestore1.Database := 'e:\ib\addemo.fdb';
ADIBRestore1.BackupFiles.Add('e:\ib\addemo.backup');
ADIBRestore1.Restore;|
What do you think about this topic? Send feedback!
|