Subject | RE: [firebird-support] embedded FB and backup |
---|---|
Author | Alan McDonald |
Post date | 2005-02-23T20:20:30Z |
> Dear All,for the embedded app - you need to use the embedded server's services API to
>
> I am deploying an application with the embedded Firebird server and
> want to provide backup facilities for the users, ideally
> programmatically from within the app (Delphi 7).
>
> I tried to execute GBAK using the ShellExecute command but it always
> returns error 2. This approach works fine with a separate program
> whose only purpose is to ShellExecute the GBAK, but I would rather do
> a silent backup every time my main app closes.
>
> My temporary solution is to use FileCopy to create a copy of the
> DATABASE.FDB file on the hoof.
>
> Am I missing something? Can GBAK work at all with the embedded server?
> Or is the problem that the embedded server will not support my app AND
> GBAK at the same time? What's the neatest way to give users a backup
> feature from within the the app?
>
> TIA,
>
> Rob
backup. If your app is running and you execute gbak external to the app - it
will be refused a connection. Your app must be closed before gbak can maek
this separte connection.
OTOH - if your app uses IBO it can use the IBOAdmin components (IBX=IBAdmin)
components to attache to the embedded server and run a backup.
I also provide restore features which require. I have this all running
seamlessly in my embedded app.
Alan