The class implementing Advantage backup database service.
Use the TADADSBackup component to add a backup Advantage database capability to an application. This is a programmatic method to invoke the adsbackup tool.
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 TADADSBackup executes backup on the DB server host and writes backup files on the server host. You must be logged in as the ADSSYS user or a user in the DB:Backup group. Note, the TADADSBackup works only with Advantage network server and not with local server.
To restore an backup performed by TADADSBackup use the TADADSRestore component.
ADADSBackup1.DriverLink := ADPhysADSDriverLink1; ADADSBackup1.Database := '\\DA\ADS_DB\addemo.add'; ADADSBackup1.UserName := 'adssys'; ADADSBackup1.Password := 'a'; ADADSBackup1.BackupPath := 'C:\Temp'; ADADSBackup1.Backup; ADMemTable1.AttachTable(ADADSBackup1.Results, nil); ADMemTable1.Open;
What do you think about this topic? Send feedback!