delphi - Cancel attached backup service -
my software has make database backups , 1 of expected features backup can canceled.
as can think of, have 3 options:
- use component, such tibbackupservice
- programmatically call gbak using shellexecute or so
- programmatically call service using gds32.dll api
i tried first 1 , if cancel service keeps running (the backup file built until end , resoureces keep unchanged).
the second option smells me , don´t think i´ll able abort operation well.
the third option cost hours , i´d know:
- is there way abort backup operation using first option?
- the third option viable? if yes, operation abortable?
- is firebird backup operation cancelable @ all?
thanks
ps: didn't mention firebird version using.
1) gbak "normal" application connects database, read information, , write backup file. restore process inverse.
2) when use servicesapi backup (option 1 , 3, in example), firebird start "internal" version of gbak job.
for of options, if using firebird 2.1, can run "delete mon$statements mon$attachment_id = " different connection. stop backup process. fb 2.5, can drop gbak connection, doing "delete mon$attachments where...".
you can find gbak attachment id looking mon$remote_process in mon$attachments table.
Comments
Post a Comment