Subject Re: Embedded / Backup
Author heirkeyso
I'm using Firebird 1.5 and delphi 7 in my application. the
ibbackupservice seem to be no problem. But when I restoring the
database using the ibrestoringservice component it has a error message
of "cannot open the test.gbk" where test.gbk is my database back-up.
Should I close first the db connection before process the restoring
the open the connection after I restore the db.

--- In firebird-support@yahoogroups.com, Nando Dessena <nandod@d...>
wrote:
> Alan,
>
> A> Someone has asked this before but noone answered..
>
> Didn't notice it... Anyway, I hope I'm not too late for saving you
> from reinventing wheels...
>
> A> If you use the embedded server and you want to backup the
database under
> A> application user control, what do you do?
>
> basically you do as you would with regular Firebird: you use the
> services API; if you're using IBX/IBO you can take advantage of the
> mentioned wrapper components, in which case you just leave the
> ServerName property blank, make sure the Protocol property is set to
> Local and backup your embedded database with or without disconnecting
> your other embedded connection(s) first. If you wish to display the
> output, make sure you have a proper fbembed setup, i.e. you need the
> firebird.msg file in your fbembed home.
>
> If you need to use gbak instead, it should be slightly harder but
> doable anyway. Let me know if you need more details.
>
> Ciao
> --
> Nando Dessena
> http://www.flamerobin.org
> ======================================================
> I support Firebird, I am a Firebird Foundation member!
> Join today at http://www.firebirdsql.org/ff/foundation
> ======================================================