Subject | Re: Backing up when Embeded Server Used? |
---|---|
Author | inoffensive_2009 |
Post date | 2008-11-19T04:16:28Z |
--- In firebird-support@yahoogroups.com, "Alan McDonald" <alan@...> wrote:
I ran IBPP's sample code, test6 is a function that backups and
recovers a database. Not two operations that naturally fit into one
function in my oppinion. But the code seems to work, and after the
call to ServiceFactory the next calls are to Service::Connect() and
Service::Shutdown().
The backup and recovery functions are part of my firebird_utilities
library, and should handle any type of server.
However, I really would like to get something working tonight (U.S.
West Coast) and I'll be happy if you can help me get something going
that depends on certain advantages offered by the single user nature
of the embedded server.
I like IBPP, and now that I see IBPP has features that take
advantage of the service API, I'm interested in pursuing that
approach. Is this an appropriate forum for discussing IBPP issues?
I'm also attempting non-IBPP Services API code, and I think I'll
start a sub thread that deals with my attempts to get that going.
Thanks
Larry
>other
> > Engine Code : 335544835
> > Engine Message :
> > Target shutdown mode is invalid for database "C:\<Path>\xxx.FDB"
> >
> > The message is the same for any of the three shut down modes.
> >
> > I then replaced the successful call to Service::StartBackup with a
> > call to Service::Shutdown. I figured if the function would support a
> > backup, it would probably work for Service::Shutdown. Same error.
> >
> > I can feel Helen becoming irritated by this discussion of IBPP in
> > the Firebird support forum from the other side of the world, and I'm
> > sorry. But I'm desperate to get this going.
> >
> > Thanks again for all the assistance.
> >
> > Larry
>
> curious, since when using embedded, you have successfully locked any
> potential user from getting access to your data file. Why are youtrying to
> shut it down?Thanks again Alan:
> Alan
I ran IBPP's sample code, test6 is a function that backups and
recovers a database. Not two operations that naturally fit into one
function in my oppinion. But the code seems to work, and after the
call to ServiceFactory the next calls are to Service::Connect() and
Service::Shutdown().
The backup and recovery functions are part of my firebird_utilities
library, and should handle any type of server.
However, I really would like to get something working tonight (U.S.
West Coast) and I'll be happy if you can help me get something going
that depends on certain advantages offered by the single user nature
of the embedded server.
I like IBPP, and now that I see IBPP has features that take
advantage of the service API, I'm interested in pursuing that
approach. Is this an appropriate forum for discussing IBPP issues?
I'm also attempting non-IBPP Services API code, and I think I'll
start a sub thread that deals with my attempts to get that going.
Thanks
Larry