-b Specify the target directory for the backup.
-c Before performing the snapshot, checkpoint the source database environment and remove any log
files that are no longer required in that environment. Toavoidmakingcatastrophicfailureimpossible,logfileremovalmustbeintegratedwithlogfilearchival.-d Specify one or more source directories that contain databases; if none is specified, the database
environment home directory will be searched for database files. As database files are copied into
a single backup directory, files named the same, stored in different source directories, could
overwrite each other when copied into the backup directory.
-h Specify the source directory for the backup, that is, the database environment home directory.
-l Specify a source directory that contains log files; if none is specified, the database environment
home directory will be searched for log files.
-P Specify an environment password. Although Berkeley DB utilities overwrite password strings as
soon as possible, be aware there may be a window of vulnerability on systems where unprivileged
users can see command-line arguments or where utilities are not able to overwrite the memory
containing the command-line arguments.
-u Update a pre-existing hot backup snapshot by copying in new log files. If the -u option is
specified, no databases will be copied into the target directory.
-V Write the library version number to the standard output, and exit.
-v Run in verbose mode, listing operations as they are done.
-D Use the data directories listed in the DB_CONFIG configuration file in the source directory.
This option has three effects: First, if they do not already exist, the specified data directories
will be created relative to the target directory (with mode read-write-execute owner). Second, all
files in the source data directories will be copied to the target data directories. If the
DB_CONFIG file specifies one or more absolute pathnames, files in those source directories will be
copied to the top-level target directory. Third, the DB_CONFIG configuration file will be copied
from the +source directory to the target directory, and subsequently used for configuration if
recovery is run in the target directory.
Care should be taken with the -D option and data directories which are named relative to the source
directory but are not subdirectories (that is, the name includes the element "..") Specifically, the
constructed target directory names must be meaningful and distinct from the source directory names,
otherwise running recovery in the target directory might corrupt the source data files.
Itisanerrortouseabsolutepathnamesfordatadirectoriesorthelogdirectoryinthismode,astheDB_CONFIGconfigurationfilecopiedintothetargetdirectorywouldthenpointatthesourcedirectoriesandrunningrecoverywouldcorruptthesourcedatafiles.
The db5.3_hotbackup utility uses a Berkeley DB environment (as described for the -h option, the
environment variable DB_HOME, or because the utility was run in a directory containing a Berkeley DB
environment). In order to avoid environment corruption when using a Berkeley DB environment,
db5.3_hotbackup should always be given the chance to detach from the environment and exit gracefully. To
cause db5.3_hotbackup to release all environment resources and exit cleanly, send it an interrupt signal
(SIGINT).
The db5.3_hotbackup utility exits 0 on success, and >0 if an error occurs.