URL: http://www.firstbasesoftware.com/man/man8/dbrestor.htm
Last modified: 12 September 1995
Copyright © by FirstBase Software.
[ Index of Contents] [ FirstBase RDBMS Overview]


NAME

DBRESTOR - restore a FirstBase database from disk

SYNOPSIS

DBRESTOR database

DESCRIPTION

DBRESTOR is a shell script that will restore a "dirty" database using the previously dumped database and the current database log file.

The concept is as follows: the dumped database and its map are copied from the dbase.BKfirstbase and dbase.BKmap files back to the live files dbase.cdb and dbase.map. Then, the dbrestor(8) tool will use the database log, dbase.log, and recover the database almost to the point where the failure occurred.

Note: it is very important that the backed up database and its map are kept intact before using the dbrestor(8) script. This is due to the fact the the database log is kept using logical record numbers. Dbclean(1) would change these record numbers -- thus causing havoc and destruction during the dbrestor(8) process.

Dbrestor(8) will run dbclean(1) on the restored database once it has completed. This is used to determine accurate counts of valid and deleted records.

This script could easily be changed to use tape backups if desired.

FILES

*.cdb
FirstBase database.

*.log
FirstBase database log.

*.map
record map of FirstBase database.

*.BKfirstbase
dumped FirstBase database.

*.BKmap
dumped map of FirstBase database.

SEE ALSO

cp(1), firstbase(5), dictionaries(5), dbdump(8)

FirstBase User's Guide and Reference Manual


URL: http://www.firstbasesoftware.com/man/man8/dbrestor.htm
Last modified: 12 September 1995
Copyright © by FirstBase Software.
[ Index of Contents] [ FirstBase RDBMS Overview]