AnyDAC
ContentsIndexHome
PreviousUpNext
TADIBBackup Class

The class implementing FB/IB backup database service.

Group
Class Hierarchy
uADPhysIB_TADIBBackupuADPhysIB_TADIBBackupuADPhysIB_TADIBBackup
File

uADPhysIB

Links

Use the TADIBBackup component to add a backup FB/IB database capability to an application. This is a programmatic method to invoke the gbak tool as a thread in the DB server process. 

To produce a DB backup an application should:

Other properties and methods are optional. 

Paths of backup files are relative to the server. Because the TADIBBackup executes backup on the DB server host, the DB Service Manager writes backup files on the server host. The DB Services Manager also creates files in the context of the server. 

To produce a DB backup log an application should set Verbose to True and use OnProgress event. 

The TADIBNBackup component may be used for an incremental backup. To restore an backup performed by TADIBBackup use the TADIBRestore component.

TADIBBackup = class(TADIBService);
ADIBBackup1.DriverLink := ADPhysIBDriverLink1;

ADIBBackup1.UserName := 'sysdba';
ADIBBackup1.Password := 'masterkey';
ADIBBackup1.Host := 'db_srv_host';
ADIBBackup1.Protocol := ipTCPIP;

ADIBBackup1.Database := 'e:\ib\addemo.fdb';
ADIBBackup1.BackupFiles.Add('e:\ib\addemo.backup');

ADIBBackup1.Backup;
What do you think about this topic? Send feedback!