Initiating multi- and single-file backups
Go Up to Performing backups and restores using the gbak command
When backing up a multifile database, specify only the first file name of the database.
For backing up to a single file
gbak [-b] [options] database target
For backing up to multiple files
gbak [-b] [options] database target1 size1[k|m|g] target2 [size2[k|m|g] target3
Argument | Description |
---|---|
<database> |
|
<target> |
Name of a storage device or backup file to which to back up
|
<size> |
Length of a backup file or restored database file
|
Options: In the OPTION
column of the following tables, only the characters outside the square brackets ([ ]) are required.
Table 8.2 lists the options to gbak
that are available for creating backups.
Option | Description |
---|---|
|
Backs up database to file or device. |
|
Converts external files as internal tables. |
|
The first time you use the -d switch, it executes a full physical backup. Subsequent uses execute an incremental backup. |
|
Creates a noncompressed back up. |
|
Uses blocking factor <n> for tape device. |
|
This option instructs the server not to perform garbage collection on every record it visits. This enables the server to retrieve records faster, and to send them to the gbak client for archiving. |
|
Ignores checksums during backup; Note: InterBase supports true checksums only for ODS 8 and earlier. |
|
Ignores limbo transactions during backup. |
|
Backs up metadata only, no data. |
|
Creates the backup in nontransportable format. |
|
Backs up metadata in old-style format. |
|
This switch causes the current set of online dump files to be deleted, and initiates a full database dump |
|
Checks for password <text> before accessing a database. |
|
Connects as role <name>. |
- |
IMPORTANT NOTE: If you are providing file path names with embedded spaces in them and using the InterBase service manager (-service switch in GBAK), you will need to multi-quote the file names: For example: # gbak –service service_mgr –r “’/path/with space/foo.ibk’” “’/path/with space/foo.ib’” –user sysdba –password masterkey |
|
Creates a transportable backup [default]. |
|
Checks for user <name> before accessing remote database. |
|
Shows what |
|
Direct status messages to <file>;
<file> must not already exist; |
|
Show version of |