Subject | Re: Embedded DB backup |
---|---|
Author | pcmilhouse |
Post date | 2010-01-15T17:38:19Z |
Thanks Roman...
The path I use for db is a String like "C:/Database/db.FDB" and for backup a similar string.
Let me know if there could be errors in params...
The path I use for db is a String like "C:/Database/db.FDB" and for backup a similar string.
Let me know if there could be errors in params...
--- In Firebird-Java@yahoogroups.com, Roman Rokytskyy <roman@...> wrote:
>
> > I'm developing a software base on FirebirdDB (user can choose if server or embedded).
> > I'm trying to backup DB. With server DB no problem, but with embedded I can't export nothing.
> > Can anyone help me? Have I to set host and port also in embedded?
>
> AFAIR, no.
>
> > Is FBBackupManager("EMBEDDED") constructor right?
>
> Right.
>
> > Below the code:
> >
> > FBBackupManager fbbm = new FBBackupManager("EMBEDDED");
> > fbbm.setBackupPath(backupFile.getAbsolutePath());
> > fbbm.setDatabase(new File(dbFile).getAbsolutePath());
> > fbbm.setUser(Services.settings.DBusernameAdmin);
> > fbbm.setPassword(Services.settings.DBpasswordAdmin);
> > fbbm.setVerbose(true);
> > fbbm.setLogger(System.out);
> >
> > fbbm.backupDatabase();
>
> That's how I would do myself :) Will check on my computer.
>
> Roman
>