Subject Re: [firebird-support] Copy a database to a blank one
Author Milan Babuskov
Sergio H. Gonzalez wrote:
> Hello! I'm using FB2.5. Is there any command line to copy a database to
> 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

Easiest way to do it with gbak:

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
==================================