File: db5.3_dump.1

package info (click to toggle)
db5.3 5.3.28%2Bdfsg2-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 158,500 kB
  • sloc: ansic: 448,411; java: 111,824; tcl: 80,544; sh: 44,264; cs: 33,697; cpp: 21,604; perl: 14,557; xml: 10,799; makefile: 4,077; javascript: 1,998; yacc: 1,003; awk: 965; sql: 801; erlang: 342; python: 216; php: 24; asm: 14
file content (120 lines) | stat: -rw-r--r-- 5,490 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
.\" Manual Page for Berkely DB utils, created from upstream
.\" documentation by Thijs Kinkhorst <thijs@kinkhorst.com>.
.TH DB5.3_DUMP 1 "28 January 2005"
.SH NAME
db5.3_dump \- Write database to flat-text format
.SH SYNOPSIS
.B db5.3_dump
[-klNpRrV] [-d ahr] [-f output] [-h home] [-P password] [-s database] file
.SH DESCRIPTION
The db5.3_dump utility reads the database file file and writes it to the standard
output using a portable flat-text format understood by the db5.3_load utility.
The file argument must be a file produced using the Berkeley DB library
functions.
.SH OPTIONS
.IP \fB\-d\fR
Dump the specified database in a format helpful for debugging the Berkeley DB
library routines.
.RS
.IP a
Display all information.
.IP h
Display only page headers.
.IP r
Do not display the free-list or pages on the free list.  This
mode is used by the recovery tests.
.RE
.IP
\fBThe output format of the -d option is not standard and may change,
without notice, between releases of the Berkeley DB library.\fR
.IP \fB\-f\fR
Write to the specified \fBfile\fR instead of to the standard output.
.IP \fB\-h\fR
Specify a home directory for the database environment; by
default, the current working directory is used.
.IP \fB\-k\fR
Dump record numbers from Queue and Recno databases as keys.
.IP \fB\-l\fR
List the databases stored in the file.
.IP \fB\-N\fR
Do not acquire shared region mutexes while running.  Other problems,
such as potentially fatal errors in Berkeley DB, will be ignored as well.
This option is intended only for debugging errors, and should not be
used under any other circumstances.
.IP \fB\-P\fR
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.
.IP \fB\-p\fR
If characters in either the key or data items are printing characters (as
defined by \fBisprint\fR(3)), use printing characters in \fBfile\fR
to represent them.  This option permits users to use standard text editors
and tools to modify the contents of databases.
.sp
Note: different systems may have different notions about what characters
are considered \fIprinting characters\fR, and databases dumped in
this manner may be less portable to external systems.
.IP \fB\-R\fR
Aggressively salvage data from a possibly corrupt file.  The \fB-R\fR
flag differs from the \fB-r\fR option in that it will return all
possible data from the file at the risk of also returning already deleted
or otherwise nonsensical items.  Data dumped in this fashion will almost
certainly have to be edited by hand or other means before the data is
ready for reload into another database
.IP \fB\-r\fR
Salvage data from a possibly corrupt file.  When used on a uncorrupted
database, this option should return equivalent data to a normal dump, but
most likely in a different order.
.IP \fB\-s\fR
Specify a single database to dump.  If no database is specified, all
databases in the database file are dumped.
.IP \fB\-V\fR
Write the library version number to the standard output, and exit.
.PP
Dumping and reloading Hash databases that use user-defined hash
functions will result in new databases that use the default hash
function.  Although using the default hash function may not be optimal
for the new database, it will continue to work correctly.
.PP
Dumping and reloading Btree databases that use user-defined prefix or
comparison functions will result in new databases that use the default
prefix and comparison functions.
\fBIn this case, it is quite likely that the database will be damaged
beyond repair permitting neither record storage or retrieval.\fR
.PP
The only available workaround for either case is to modify the sources
for the db5.3_load utility to load the database using the correct
hash, prefix, and comparison functions.
.PP
The db5.3_dump utility output format is documented in the
Dump Output Formats section of the Berkeley DB Reference Guide.
.PP
The db5.3_dump utility may be used with a Berkeley DB environment (as described for the
\fB-h\fR option, the environment variable \fBDB_HOME\fR, 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_dump should always be given the chance to
detach from the environment and exit gracefully.  To cause db5.3_dump
to release all environment resources and exit cleanly, send it an
interrupt signal (SIGINT).
.PP
Even when using a Berkeley DB database environment, the db5.3_dump
utility does not use any kind of database locking if it is invoked with
the \fB-d\fR, \fB-R\fR, or \fB-r\fR arguments.   If used with
one of these arguments, the db5.3_dump utility may only be safely
run on databases that are not being modified by any other process;
otherwise, the output may be corrupt.
.PP
The db5.3_dump utility exits 0 on success, and >0 if an error occurs.
.SH ENVIRONMENT
.IP \fBDB_HOME\fR
If the \fB-h\fR option is not specified and the environment variable
DB_HOME is set, it is used as the path of the database home, as described
in DB_ENV->open.
.SH AUTHORS
Sleepycat Software, Inc. This manual page was created based on
the HTML documentation for db_dump from Sleepycat,
by Thijs Kinkhorst <thijs@kinkhorst.com>,
for the Debian system (but may be used by others).