1DB2LDIF(8) System Manager's Manual DB2LDIF(8)
2
3
4
6 db2ldif - Directory Server script for exporting the database
7
9 db2ldif [-Z serverID] {-n backend_instance}* | {-s includeSuffix}* [{-x
10 excludeSuffix}*] [-a outputFile] [-v] [-m] [-M] [-r] [-u] [-U] [-C]
11 [-N] [-E] [-1] [-q] [-h]
12
14 Exports the contents of the database to a LDIF file. This script can be
15 executed while the server is still running, except when using the -r
16 option.
17
19 A summary of options is included below:
20
21 -Z Server Identifier
22 The server ID of the Directory Server instance. If there is
23 only one instance on the system, this option can be skipped.
24
25 -n Backend Name
26 The name of the LDBM database to reindex. Example: userRoot
27
28 -s includeSuffix
29 Specifies suffixes to be included in the LDIF file.
30
31 -x excludeSuffix
32 Specifies suffixes to be excluded from the LDIF file.
33
34 -a Output File
35 The name for the LDIF file.
36
37 -m
38 Minimize the base64 encodings in the exported LDIF file.
39
40 -M
41 Exported ldif is stored in multiple files. These files are named
42 : <instance>_<filename>
43 By default, all instances are stored in the filename specified
44 by the -a option.
45
46 -r
47 Export replication data(information required to initialize a
48 replica when the LDIF is imported).
49
50 -v Display version
51
52 -u
53 Do not export the unique-id attribute.
54
55 -U
56 Requests that the output LDIF is not folded.
57
58 -C
59 Uses only the main database file.
60
61 -N
62 Suppress printing sequential number
63
64 -E
65 Decrypts any encrypted data during export.
66
67 -1
68 Deletes, for reasons of backward compatibility, the first line
69 of the LDIF file that gives the version of the LDIF standard.
70
71 -q
72 Quiet mode. Suppresses output of the script.
73
74 -h
75 Display the usage.
76
78 db2ldif -Z instance3 -n userRoot -a /LDAP/ldif/export.ldif
79
80 db2ldif -s 'dc=example,dc=com' -a /LDAP/ldif/export.ldif -m -E -q
81
83 Exit status is zero if no errors occur. Errors result in a non-zero
84 exit status and a diagnostic message being written to standard error.
85
87 db2ldif was written by the 389 Project.
88
90 Report bugs to https://pagure.io/389-ds-base/new_issue
91
93 Copyright © 2017 Red Hat, Inc.
94
95
96
97 March 31, 2017 DB2LDIF(8)