{
    "mode": "man",
    "parameter": "DB5.3_HOTBACKUP",
    "section": "1",
    "url": "https://www.chedong.com/phpMan.php/man/DB5.3_HOTBACKUP/1/json",
    "generated": "2026-11-23T00:07:13Z",
    "synopsis": "db5.3hotbackup [-cDuVv] [-d datadir ...] [-h home] [-l logdir] [-P password] -b backupdir",
    "sections": {
        "NAME": {
            "content": "db5.3hotbackup - Create \"hot backup\" or \"hot failover\" snapshots\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "db5.3hotbackup [-cDuVv] [-d datadir ...] [-h home] [-l logdir] [-P password] -b backupdir\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "The  db5.3hotbackup  utility creates \"hot backup\" or \"hot failover\" snapshots of Berkeley DB\ndatabase environments.\n\nThe db5.3hotbackup utility performs the following steps:\n\n1.     If the -c option is specified, checkpoint the source home database environment,\nand remove any unnecessary log files.\n\n2.     If the target directory for the backup does not exist, it is created with  mode\nread-write-execute for the owner.\n\nIf  the target directory for the backup does exist and the -u option was speci‐\nfied, all log files in the target directory are removed; if the -u  option  was\nnot specified, all files in the target directory are removed.\n\n3.     If  the  -u  option was not specified, copy application-specific files found in\nthe database environment home directory, or any directory specified  using  the\n-d option, into the target directory for the backup.\n\n4.     Copy all log files found in the directory specified by the -l option (or in the\ndatabase  environment  home directory, if no -l option was specified), into the\ntarget directory for the backup.\n\n5.     Perform catastrophic recovery on the hot backup.\n\n6.     Remove any unnecessary log files from the hot backup.\n\nThe db5.3hotbackup utility does not resolve pending transactions that are  in  the  prepared\nstate. Applications that use DBTXN->prepare should specify DBRECOVERFATAL when opening the\nenvironment,  and  run  DBENV->txnrecover to resolve any pending transactions, when failing\nover to the hot backup.\n",
            "subsections": []
        },
        "OPTIONS": {
            "content": "",
            "subsections": [
                {
                    "name": "-b",
                    "content": "",
                    "flag": "-b"
                },
                {
                    "name": "-c",
                    "content": "any  log files that are no longer required in that environment.  To avoid making cata‐\nstrophic failure impossible, log  file  removal  must  be  integrated  with  log  file\narchival.\n",
                    "flag": "-c"
                },
                {
                    "name": "-d",
                    "content": "the database environment home directory will be searched for database files.  As data‐\nbase files are copied into a single backup directory, files named the same, stored  in\ndifferent  source  directories, could overwrite each other when copied into the backup\ndirectory.\n",
                    "flag": "-d"
                },
                {
                    "name": "-h",
                    "content": "directory.\n",
                    "flag": "-h"
                },
                {
                    "name": "-l",
                    "content": "environment home directory will be searched for log files.\n",
                    "flag": "-l"
                },
                {
                    "name": "-P",
                    "content": "strings as soon as possible, be aware there may be a window of vulnerability  on  sys‐\ntems  where  unprivileged  users can see command-line arguments or where utilities are\nnot able to overwrite the memory containing the command-line arguments.\n",
                    "flag": "-P"
                },
                {
                    "name": "-u      -u",
                    "content": "tion is specified, no databases will be copied into the target directory.\n",
                    "flag": "-u"
                },
                {
                    "name": "-V",
                    "content": "",
                    "flag": "-V"
                },
                {
                    "name": "-v",
                    "content": "",
                    "flag": "-v"
                },
                {
                    "name": "-D",
                    "content": "rectory.   This option has three effects: First, if they do  not  already  exist,  the\nspecified data directories will be created relative to the target directory (with mode\nread-write-execute  owner).  Second,  all files in the source data directories will be\ncopied to the target data directories.  If the DBCONFIG file specifies  one  or  more\nabsolute  pathnames, files in those source directories will be copied to the top-level\ntarget directory. Third, the DBCONFIG configuration file  will  be  copied  from  the\n+source  directory to the target directory, and subsequently used for configuration if\nrecovery is run in the target directory.\n\nCare should be taken with the -D option and data directories which are named relative to  the\nsource  directory  but  are  not subdirectories (that is, the name includes the element \"..\")\nSpecifically, the constructed target directory names must be meaningful and distinct from the\nsource directory names, otherwise running recovery in the target directory might corrupt  the\nsource data files.\n",
                    "flag": "-D"
                },
                {
                    "name": "It  is  an  error to use absolute pathnames for data directories or the log directory in this",
                    "content": ""
                },
                {
                    "name": "mode, as the DB_CONFIG configuration file copied into the target directory would  then  point",
                    "content": ""
                },
                {
                    "name": "at the source directories and running recovery would corrupt the source data files.",
                    "content": "The  db5.3hotbackup  utility uses a Berkeley DB environment (as described for the -h option,\nthe environment variable DBHOME, or because the utility was run in a directory containing  a\nBerkeley  DB environment).  In order to avoid environment corruption when using a Berkeley DB\nenvironment, db5.3hotbackup should always be given the chance to detach from the environment\nand exit gracefully.  To cause db5.3hotbackup to release all environment resources and  exit\ncleanly, send it an interrupt signal (SIGINT).\n\nThe db5.3hotbackup utility exits 0 on success, and >0 if an error occurs.\n"
                }
            ]
        },
        "ENVIRONMENT": {
            "content": "DBHOME\nIf  the  -h option is not specified and the environment variable DBHOME is set, it is\nused as the path of the database home, as described in DBENV->open.\n",
            "subsections": []
        },
        "AUTHORS": {
            "content": "Oracle Corporation. This manual page was created based on the HTML documentation for  dbhot‐\nbackup  from  Sleepycat, by Thijs Kinkhorst <thijs@kinkhorst.com>, for the Debian system (but\nmay be used by others).\n\n28 January 2005                        DB5.3HOTBACKUP(1)",
            "subsections": []
        }
    },
    "summary": "db5.3hotbackup - Create \"hot backup\" or \"hot failover\" snapshots",
    "flags": [
        {
            "flag": "-b",
            "long": null,
            "arg": null,
            "description": ""
        },
        {
            "flag": "-c",
            "long": null,
            "arg": null,
            "description": "any log files that are no longer required in that environment. To avoid making cata‐ strophic failure impossible, log file removal must be integrated with log file archival."
        },
        {
            "flag": "-d",
            "long": null,
            "arg": null,
            "description": "the database environment home directory will be searched for database files. As data‐ base 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."
        },
        {
            "flag": "-h",
            "long": null,
            "arg": null,
            "description": "directory."
        },
        {
            "flag": "-l",
            "long": null,
            "arg": null,
            "description": "environment home directory will be searched for log files."
        },
        {
            "flag": "-P",
            "long": null,
            "arg": null,
            "description": "strings as soon as possible, be aware there may be a window of vulnerability on sys‐ tems where unprivileged users can see command-line arguments or where utilities are not able to overwrite the memory containing the command-line arguments."
        },
        {
            "flag": "-u",
            "long": null,
            "arg": null,
            "description": "tion is specified, no databases will be copied into the target directory."
        },
        {
            "flag": "-V",
            "long": null,
            "arg": null,
            "description": ""
        },
        {
            "flag": "-v",
            "long": null,
            "arg": null,
            "description": ""
        },
        {
            "flag": "-D",
            "long": null,
            "arg": null,
            "description": "rectory. 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 DBCONFIG file specifies one or more absolute pathnames, files in those source directories will be copied to the top-level target directory. Third, the DBCONFIG 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."
        }
    ],
    "examples": [],
    "see_also": [],
    "tldr": {
        "source": "not_found",
        "examples": []
    }
}