Subject | Re: [firebird-support] Copy a database to a blank one |
---|---|
Author | Milan Babuskov |
Post date | 2011-12-16T11:11:48Z |
Sergio H. Gonzalez wrote:
gbak -m database.fdb empty-backup.fbk
gbak -c empty-backup.fbk empty-database.fdb
If you already have a backup, you can use -m to only restore metadata.
gbak -c -m some-backup.fbk empty-database.fdb
--
Milan Babuskov
==================================
The easiest way to import XML, CSV
and textual files into Firebird:
http://www.guacosoft.com/xmlwizard
==================================
> Hello! I'm using FB2.5. Is there any command line to copy a database toEasiest way to do it with gbak:
> a blank one? I mean, I need to create an empty copy of a given database,
> but I'd like to do it using a command in a bath file... I hope I'm
> clear! I'v been googling but had no luck!. -sergio
gbak -m database.fdb empty-backup.fbk
gbak -c empty-backup.fbk empty-database.fdb
If you already have a backup, you can use -m to only restore metadata.
gbak -c -m some-backup.fbk empty-database.fdb
--
Milan Babuskov
==================================
The easiest way to import XML, CSV
and textual files into Firebird:
http://www.guacosoft.com/xmlwizard
==================================