Debian Codegraph @

external/db_drivers/liblmdb/mdb_copy.1

raw
1 .TH MDB_COPY 1 "2017/07/31" "LMDB 0.9.70"
2 .\" Copyright 2012-2019 Howard Chu, Symas Corp. All Rights Reserved.
3 .\" Copying restrictions apply. See COPYRIGHT/LICENSE.
4 .SH NAME
5 mdb_copy \- LMDB environment copy tool
6 .SH SYNOPSIS
7 .B mdb_copy
8 [\c
9 .BR \-V ]
10 [\c
11 .BR \-c ]
12 [\c
13 .BR \-n ]
14 [\c
15 .BR \-v ]
16 .B srcpath
17 [\c
18 .BR dstpath ]
19 .SH DESCRIPTION
20 The
21 .B mdb_copy
22 utility copies an LMDB environment. The environment can
23 be copied regardless of whether it is currently in use.
24 No lockfile is created, since it gets recreated at need.
25
26 If
27 .I dstpath
28 is specified it must be the path of an empty directory
29 for storing the backup. Otherwise, the backup will be
30 written to stdout.
31
32 .SH OPTIONS
33 .TP
34 .BR \-V
35 Write the library version number to the standard output, and exit.
36 .TP
37 .BR \-c
38 Compact while copying. Only current data pages will be copied; freed
39 or unused pages will be omitted from the copy. This option will
40 slow down the backup process as it is more CPU-intensive.
41 Currently it fails if the environment has suffered a page leak.
42 .TP
43 .BR \-n
44 Open LDMB environment(s) which do not use subdirectories.
45 .TP
46 .BR \-v
47 Use the previous environment state instead of the latest state.
48 This may be useful if the latest state has been corrupted.
49
50 .SH DIAGNOSTICS
51 Exit status is zero if no errors occur.
52 Errors result in a non-zero exit status and
53 a diagnostic message being written to standard error.
54 .SH CAVEATS
55 This utility can trigger significant file size growth if run
56 in parallel with write transactions, because pages which they
57 free during copying cannot be reused until the copy is done.
58 .SH "SEE ALSO"
59 .BR mdb_stat (1)
60 .SH AUTHOR
61 Howard Chu of Symas Corporation <http://www.symas.com>