Subject | embedded FB and backup |
---|---|
Author | rob2xx2 |
Post date | 2005-02-23T18:05:18Z |
Dear All,
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
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