Subject | Re: [firebird-support] Re: gbak to a non existing directory - Email found in subject |
---|---|
Author | Milan Babuskov |
Post date | 2012-06-07T12:22:26Z |
ma_golyo wrote:
solutions:
a) log into Linux using SSH protocol and create directory using the
system mkdir command with --parents switch. Then set up privileges with
chown and chmod.
b) write small Linux UDF that creates directories, register it in some
database (employee.fdb for example) and call it from code:
db.Query("select createDir("/path/on/linux") from rdb$database");
HTH
--
Milan Babuskov
==================================
The easiest way to import XML, CSV
and textual files into Firebird:
http://www.guacosoft.com/xmlwizard
==================================
> To stat a new customer we have toI'm not sure about Delphi's capabilities here, but I see two possible
> #1 : copy the app to new folder (win)
> #2 : copy the initial DB to new folder (linux)
> #3 : update inital DB metadata to current app version
>
> I'm writing (Delphi) app which does the steps above. App runs on the terminal (win) server.
> #1 : OK
> #2 : not OK. I cannot create new DB with FB, and I cannot restore a DB with GBAK to a non existing directory.
solutions:
a) log into Linux using SSH protocol and create directory using the
system mkdir command with --parents switch. Then set up privileges with
chown and chmod.
b) write small Linux UDF that creates directories, register it in some
database (employee.fdb for example) and call it from code:
db.Query("select createDir("/path/on/linux") from rdb$database");
HTH
--
Milan Babuskov
==================================
The easiest way to import XML, CSV
and textual files into Firebird:
http://www.guacosoft.com/xmlwizard
==================================