|
AnyDAC
|
The class implementing Firebird-only backup database service.
uADPhysIB
Use the TADIBNBackup component to add a Firebird-only backup database capability to an application. This is a programmatic method to invoke the nbackup tool as a thread in the DB server process to backup a database.
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 TADIBNBackup 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 restore an backup performed by TADIBNBackup use the TADIBNRestore component.
Read
http://www.firebirdsql.org/manual/nbackup.html for more details.
TADIBNBackup = class(TADIBService);
ADIBNBackup1.DriverLink := ADPhysIBDriverLink1;
ADIBNBackup1.UserName := 'sysdba';
ADIBNBackup1.Password := 'masterkey';
ADIBNBackup1.Host := 'db_srv_host';
ADIBNBackup1.Protocol := ipTCPIP;
ADIBNBackup1.Database := 'e:\ib\addemo.fdb';
ADIBNBackup1.BackupFile := 'e:\ib\addemo.backup';
ADIBNBackup1.Level := 0; // full backup
ADIBNBackup1.Backup;|
What do you think about this topic? Send feedback!
|