Subject | RE: [Firebird-Java] Backup with Java |
---|---|
Author | Ryan Baldwin |
Post date | 2004-01-14T11:21:14Z |
Hi Ivens,
I just thought I'd point out that it is possible too attach too a remote
firebird server's services API and invoke GBAK via this. In the previous
example I gave the line
gds.isc_service_attach( "service_mgr", handle, serviceParameterBuffer );
could be changed too read
gds.isc_service_attach( "serverhost:service_mgr", handle,
serviceParameterBuffer );
where 'serverhost' is replaced with the name of the machine too which you
wish too connect. The Interbase 6 ApiGuid contains infomation regarding
this.
As far as I understand this would probarbly be the easiest way of invoking
GBAK on a remote system.
Ryan
-----Original Message-----
From: Ivens Tadeu Silveira [mailto:ivens@...]
Sent: 14 January 2004 11:15
To: Firebird-Java@yahoogroups.com
Subject: Re: [Firebird-Java] Backup with Java
Hi Rick,
Could you answer me just one little thing? It´s possible access gbak
directly from my client computer using RMI or I will need an another program
in the database server to receive de request from client and them run gbak.
Thanks.
I just thought I'd point out that it is possible too attach too a remote
firebird server's services API and invoke GBAK via this. In the previous
example I gave the line
gds.isc_service_attach( "service_mgr", handle, serviceParameterBuffer );
could be changed too read
gds.isc_service_attach( "serverhost:service_mgr", handle,
serviceParameterBuffer );
where 'serverhost' is replaced with the name of the machine too which you
wish too connect. The Interbase 6 ApiGuid contains infomation regarding
this.
As far as I understand this would probarbly be the easiest way of invoking
GBAK on a remote system.
Ryan
-----Original Message-----
From: Ivens Tadeu Silveira [mailto:ivens@...]
Sent: 14 January 2004 11:15
To: Firebird-Java@yahoogroups.com
Subject: Re: [Firebird-Java] Backup with Java
Hi Rick,
Could you answer me just one little thing? It´s possible access gbak
directly from my client computer using RMI or I will need an another program
in the database server to receive de request from client and them run gbak.
Thanks.
----- Original Message -----
From: Rick Fincher
To: Firebird-Java@yahoogroups.com
Sent: Wednesday, January 07, 2004 6:26 PM
Subject: Re: [Firebird-Java] Backup with Java
Hi Ivens,
There are numerous ways to do this. If your Java app is running on the same
server machine as Firebird you could simply use java.lang.System.exec() to
call gbak from the command line.
You could use java.rmi to do this from a remote Java system.
Rick
----- Original Message -----
Anyone knows if it's possible to do a database backup from a java
program? If it's possible where can I get a sample?
Yahoo! Groups Links
To visit your group on the web, go to:
http://groups.yahoo.com/group/Firebird-Java/
To unsubscribe from this group, send an email to:
Firebird-Java-unsubscribe@yahoogroups.com
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Yahoo! Groups Links
To visit your group on the web, go to:
http://groups.yahoo.com/group/Firebird-Java/
To unsubscribe from this group, send an email to:
Firebird-Java-unsubscribe@yahoogroups.com
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.