The class implementing SQL Anywhere backup database service.
Use the TADASABackup component to add a backup database capability to an application. This is a programmatic method to invoke the dbbackup tool as a thread in the DB server process.
To produce a DB backup an application should:
Other properties and methods are optional.
Using the TADASABackup component on a running database is equivalent to copying the database files when the database is not running. You can use the Backup utility to back up the database while other applications or users are using it.
To communicate with an user or application the SQL Anywhere DB tool is using OnProgress event. To ask for confirmation the event will be fired with AKind = tmConfirm. The OnProgress event also may be used to produce a DB backup log.
ADASABackup1.DriverLink := ADPhysASADriverLink1; ADASABackup1.ConnectParams := 'ENG=addemo_asa11;DBN=addemo_asa11;UID=DBA;PWD=sql'; ADASABackup1.OutputDir := 'c:\temp\db'; ADASABackup1.Flags := [bfBackupDB, bfBackupLog]; ADASABackup1.OnProgress := ADASABackup1Progress; ADASABackup1.Backup;
What do you think about this topic? Send feedback!