Subject | Problem using service API to run a remote backup |
---|---|
Author | phil_hhn |
Post date | 2007-02-19T03:14:07Z |
Hi,
We're trying to use the services API (in the 2.1.1 JDBC driver) to run
a backup. When we call setHost("127.0.0.1") the backup works fine (we
see a lot of output in stdout and it takes a while), but if we choose
a remote host (eg "192.168.0.123") then when the code runs the backup
is instant and there is no output to stdout (so clearly nothing has
happened).
Can 'setHost' be used to specify a remote machine (I can't see any
docs to suggest it can't)?
Here is the code we're running:
org.firebirdsql.management.FBBackupManager mgr = new
org.firebirdsql.management.FBBackupManager();
mgr.setUser("sysdba");
mgr.setPassword("abcdef");
mgr.setHost("192.168.0.123");
mgr.setVerbose(true);
mgr.setLogger(System.out);
mgr.setDatabase("MyDatabase");
mgr.setBackupPath("C:\\temp\\MyDatabase.fbk");
mgr.backupDatabase();
Any ideas?
Thanks, Phil
We're trying to use the services API (in the 2.1.1 JDBC driver) to run
a backup. When we call setHost("127.0.0.1") the backup works fine (we
see a lot of output in stdout and it takes a while), but if we choose
a remote host (eg "192.168.0.123") then when the code runs the backup
is instant and there is no output to stdout (so clearly nothing has
happened).
Can 'setHost' be used to specify a remote machine (I can't see any
docs to suggest it can't)?
Here is the code we're running:
org.firebirdsql.management.FBBackupManager mgr = new
org.firebirdsql.management.FBBackupManager();
mgr.setUser("sysdba");
mgr.setPassword("abcdef");
mgr.setHost("192.168.0.123");
mgr.setVerbose(true);
mgr.setLogger(System.out);
mgr.setDatabase("MyDatabase");
mgr.setBackupPath("C:\\temp\\MyDatabase.fbk");
mgr.backupDatabase();
Any ideas?
Thanks, Phil