Solution ID: prim13115 |
How to backup / restore an Interbase database with gbak.exe |
Status: Reviewed |
Version(s): 3.5, 3.5.1, 4.0, 4.1 |
Problem: | How to backup / restore an Interbase database with gbak.exe |
Fix: | The gbak command-line tool allows both back up or restore of an Interbase database. Only sysdba or database owner can backup a database. gbak is installed in : [Primavera Install Folder]\Intrbase\bin\gbak.exe To backup an Interbase database called PMDB.gdb : 1. At the command prompt navigate to the Intrbase\bin folder 2. Type the following command : gbax -b -user [username] -password [password] [database] [target] For example : gbak -b -user sysdba -password masterkey c:\databases\pmdb.gdb c:\databases\backups\pmdbbackup.gbk To restore an Interbase database called pmdbbackup.gbk : 1. At the command prompt navigate to the Intrbase\bin folder 2. Type the following command : gbax [-c|-r] -user [username] -password [password] [source] [database] For example : gbak -c -user sysdba -password masterkey c:\databases\backups\pmdbbackup.gbk c:\databases\pmdb.gdb Note : Using -c will create a new database file, using -b will attempt to restore over an existing file |