Subject | Re: [Firebird-Java] Embedded DB backup |
---|---|
Author | Roman Rokytskyy |
Post date | 2010-01-15T20:00:09Z |
> That's how I would do myself :) Will check on my computer.Tried unit test cases with FB 2.5 embedded, works fine. The example code
is the following:
backupManager = new FBBackupManager(getGdsType());
backupManager.setUser(DB_USER);
backupManager.setPassword(DB_PASSWORD);
backupManager.setDatabase(getDatabasePath());
backupManager.setBackupPath(getBackupPath());
backupManager.setLogger(System.out);
backupManager.setVerbose(true);
backupManager.backupDatabase();
backupManager.restoreDatabase();
What exceptions do you get?
Roman