Subject Re: [firebird-support] How can I do backup and restore of database programmatically?
Author Stefan Heymann
Deepak,

you could write the backup and restore commands to a Batch file and
call that from your VC++ program using WinExec or ShellExecute or
whatever API to start a program.

Best Regards

Stefan


> Hi,
> I want to shrink the size of database after deletion for that i need
> to do backup and restore of that database.
> and as i know gbak is the only utility for firebird which does backup
> and restore.
> my problem is that i want to call it programmatically.
> How i call gbak by vc++ program?

> please help.

> Thanks in advance.

> Regards
> Deepak Gupta



> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

> Visit http://www.firebirdsql.org and click the Resources item
> on the main (top) menu. Try Knowledgebase and FAQ links !

> Also search the knowledgebases at http://www.ibphoenix.com

> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
>
> Yahoo! Groups Links