Using a Journal Archive to Recover a Database

From InterBase

Go Up to Journaling and Disaster Recovery


To recover a database from a journal archive, use the following syntax:

gbak -archive_recover [-until <timestamp>] <archive_dbname> <local_dbname>

If you do not use the -UNTIL switch, InterBase recovers the database to the last committed transaction in the most recently archived journal file or to the last committed transaction in the current, active journal file if the current, active journal file is accessible. The -until <timestamp> instructs InterBase to recover transactions until the date and time you specify.

It is recommended that you start building a new archive soon after a successful recovery event. You can create a new archive by issuing the gbak -archive_database and the gbak -archive_journals commands.

Advance To: