Subject Re: Problems with backup via service_mgr
Author Adam
--- In firebird-support@yahoogroups.com, "Vlad Khorsun" <hvlad@...> wrote:
>
> > The following script
> > ---
> >
> > C:\>cd\program files\firebird\firebird_1_5\bin\
> >
> > C:\Program Files\Firebird\Firebird_1_5\bin>gbak -b -se
> > localhost:service_mgr localhost:myalias c:\test.fbk -user sysdba
> > -password masterke -v
> >
> > C:\Program Files\Firebird\Firebird_1_5\bin>
>
> Using service API you don't need to put host name into connection
> string. Try
>
> gbak -b -se localhost:service_mgr myalias c:\test.fbk -user ...
>
> Regards,
> Vlad
>
> PS Also consider to include switch -g doing backup
>

Thanks Vlad,

I am not used to using gbak as a wrapper around services API. When I
remove the host name, it doesn't work on my laptop either:

gbak -b -se localhost:service_mgr myalias c:\test.fbk -user sysdba
-password masterke -v -g

gbak: ERROR: unavailable database
gbak: Exiting before completion due to errors

(I presumed this to be because I am using Classic server, prepending
localhost works on my laptop, but not on the server).

I now have a remote desktop connection to the server, and it is
throwing the following error

---
C:\Program Files\Firebird\Firebird_1_5\bin>gbak -b -se
localhost:service_mgr myalias c:\test.fbk -user sysdba -password
masterke -v -g
gbak: ERROR: operating system directive CreateProcess failed
gbak: ERROR: unknown Win32 error 193
gbak: Exiting before completion due to errors
---

It seems that this has just started to occur - previously there was no
output whatsoever. Does this help at all?

Thanks in advance
Adam