Subject | Re: [firebird-php] Fw: [PHP] Firebird Backup |
---|---|
Author | Sándor Tamás (HostWare Kft.) |
Post date | 2009-01-07T13:02:14Z |
Yes, I know. It was just the proper description of what I have tried to make it work :-)
SanTa
SanTa
----- Original Message -----
From: Helen Borrie
To: firebird-php@yahoogroups.com
Sent: Wednesday, January 07, 2009 12:43 PM
Subject: Re: [firebird-php] Fw: [PHP] Firebird Backup
At 09:34 PM 7/01/2009, you wrote:
>> Hi,
>>
>> I don't know if it's Firebird or PHP question.
Both, I think.
>>
>> I want to use remote administration on one of my pages, at least do a
>> backup for a Firebird database. Because the database file is located on a
>> different intranet machine, I have to use service manager to do backup.
>> So I tried:
>>
>> $svc_mgr = ibase_service_attach(FBSERVER, FBUSER, FBPASS);
>> if ($svc_mgr)
>> {
>> $bkp = ibase_backup($svc_mgr, $source_db, $dest_file,
>> IBASE_BKP_NO_GARBAGE_COLLECT, true);
>> }
>>
>> ibase_service_detach($svc_mgr);
>>
>>
>> The bad thing: if I include "server:" in $source_db string, it gives me an
>> "unkown ISC 0 error".
Well, it *is* an ISC error. This is a server-level operation. Your $svc_mgr value should resolve to "hostname:service_mgr" (where hostname is the name of your server. the service_mgr part is a constant - don't substitute it!) The service manager code within the Firebird server engine must receive a completely host-local ("serverless") path to the database.
Helen
[Non-text portions of this message have been removed]