Subject Re: Query server about backup service
Author Christophe Brunin
I run backup with isc_service_start and isc_action_svc_backup
I already tried to query the service with isc_info_svc_running but it
always returns TRUE even when the backup is finished.

Any other suggestion?

Tx.
Christophe.

--- In firebird-support@yahoogroups.com, "Rony Cesana" <r.cesana@...>
wrote:
>
> ----- Original Message -----
> From: "Christophe Brunin" <Christophe.Brunin@...>
> To: <firebird-support@yahoogroups.com>
> Sent: Tuesday, February 28, 2006 9:48 AM
> Subject: [firebird-support] Query server about backup service
>
>
> > Hello,
> >
> > I want to reorganize a database with a backup and a restore. I do
this
> > in a program. My problem is that the server is still backuping the
> > database when my program tries to start the restore. This
prevents the
> > restore to complete because the backup file is locked (of
course...).
> > Do you know if it is possible to query the server about a task
running?
> > How? Thanks
> >
> > Christophe Brunin.
>
>
> I suppose it depends on HOW you run the backup... if you're doing
it with
> the Services API I think you could call isc_service_query,
providing
> isc_info_svc_running in the request buffer...
>
> Rony
>