db_archive [-alsv] [-h home]
The db_archive utility writes the pathnames of log files that are no longer in use (e.g., no longer involved in active transactions), to the standard output, one pathname per line. These log files should be written to backup media to provide for recovery in the case of catastrophic failure (which also requires a snapshot of the database files), but they may then be deleted from the system to reclaim disk space.
The options are as follows:
It is possible that some of the files referenced in the log have since been deleted from the system. In this case, db_archive will ignore them. When db_recover is run, any files referenced in the log that are not present during recovery are assumed to have been deleted and will not be recovered.
The db_archive utility attaches to one or more of the Berkeley DB shared memory regions. In order to avoid region corruption, it should always be given the chance to detach and exit gracefully. To cause db_archive to clean up after itself and exit, send it an interrupt signal (SIGINT).
The log_archive function is the underlying function used by the db_archive utility. See the db_archive utility source code for an example of using log_archive in a POSIX 1003.1 environment.
The db_archive utility exits 0 on success, and >0 if an error occurs.