1
.\" Hey, EMACS: -*- nroff -*-
2
.\" First parameter, NAME, should be all caps
3
.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
4
.\" other parameters are allowed: see man(7), man(1)
5
.TH DB2LDIF 8 "Mar 5, 2013"
6
.\" Please adjust this date whenever revising the manpage.
8
.\" Some roff macros, for reference:
9
.\" .nh disable hyphenation
10
.\" .hy enable hyphenation
11
.\" .ad l left justify
12
.\" .ad b justify to both left and right margins
13
.\" .nf disable filling
14
.\" .fi enable filling
15
.\" .br insert line break
16
.\" .sp <n> insert n+1 empty lines
17
.\" for manpage-specific macros, see man(7)
19
db2ldif - Directory Server script for exporting the database
21
db2ldif [-Z serverID] {-n backend_instance}* | {-s includeSuffix}* [{-x excludeSuffix}*] [-a outputFile] [-m] [-M] [-r] [-u] [-U] [-C] [-N] [-E] [-1] [-q] [-h]
23
Exports the contents of the database to a LDIF file. This script can be executed while the server is still running, except when using the -r option.
25
A summary of options is included below:
27
.B \fB\-Z\fR \fIServer Identifier\fR
28
The server ID of the Directory Server instance. If there is only
29
one instance on the system, this option can be skipped.
31
.B \fB\-n\fR \fIBackend Name\fR
32
The name of the LDBM database to reindex. Example: userRoot
34
.B \fB\-s\fR \fIincludeSuffix\fR
35
Specifies suffixes to be included in the LDIF file.
37
.B \fB\-x\fR \fIexcludeSuffix\fR
38
Specifies suffixes to be excluded from the LDIF file.
40
.B \fB\-a\fR \fIOutput File\fR
41
The name for the LDIF file.
45
Minimize the base64 encodings in the exported LDIF file.
49
Exported ldif is stored in multiple files. These files are named : <instance>_<filename>
51
By default, all instances are stored in the filename specified by the -a option.
55
Export replication data(information required to initialize a replica when the LDIF is imported).
59
Do not export the unique-id attribute.
63
Requests that the output LDIF is not folded.
67
Uses only the main database file.
71
Suppress printing sequential number
75
Decrypts any encrypted data during export.
79
Deletes, for reasons of backward compatibility, the first line of the LDIF file that gives the version of the LDIF standard.
83
Quiet mode. Suppresses output of the script.
90
db2ldif -Z instance3 -n userRoot -a /LDAP/ldif/export.ldif
92
db2ldif -s 'dc=example,dc=com' -a /LDAP/ldif/export.ldif -m -E -q
94
Exit status is zero if no errors occur. Errors result in a
95
non-zero exit status and a diagnostic message being written
98
db2ldif was written by the 389 Project.
100
Report bugs to http://bugzilla.redhat.com.
102
Copyright \(co 2013 Red Hat, Inc.