Restore database

Main Menu - Tools - Restore database

This option is used to restore a database from a backup interbase file, there can be more than one database file.

You must specify the backup file or files and the database server and database file or files.

Usually you create backup files smaller than 2 Gigabytes to be transportable between different file systems (FAT32, NTFS, EXT2...) because some file systems don't support files greater than 2 Gigabytes.

To restore a database that is greater than 2 Gigabytes you must specify more than one file, it' s recommended for large databases you enter some additional files to allow the database to grow. Once a database is restored and online you can add more files to the database.

You can select a pre-configured database also.

If you are restoring the database from the server simply write the paths to the files, but if you are restoring a database from another machine you must consider the Type of restore option.

Service and Use command line tool as a service

The paths of the backup files and database files are relative to the server, so you must specify the path to backup files and database files as if you are doing the operation from the server. On the backup files you can use UNC paths ((\\machine\sharedfolder) or maped drives paths. On the database files you only can specify server volumes and paths.

Use command line tool (not as a service)

As the option above the database files are relative to the server and must reside on server volumes, but the backup files are relative to the client machine, you can also use UNC paths or mapped drive paths to obtain the same result of the service options but be aware that all the backup data first go to the client it sends to the server ocuping net bandwith, so the best way to backup a database in a low connection enviroment is do it as a service (but the backup file will be created on the server).

Use command line tool and Service

Use command line tool option executes the gbak utility on the client machine, while service option executes a service via the Interbase API so an Interbase 6 server is required to use this option.

Page size

The page size determines the size of each database file, and how data is stored in the database see Interbase manuals for more details. Here you can see the resulting size in Megabytes.

Options

You can specify additional options clicking options button (by default this options are hide).

See Interbase documentation for information about this options in Operatiors Guide on the Backup and Restore chapter.

You usually use this options when you have problems restoring the database or you want to create a read only database. For a readonly database Use full space option improves performance.

When the restore begins you can see a Window with the progress indicator, when using services you can save the progress to a file, see service progres for more information.

 

See also:

Database management index

Database connection samples