1 .TH SLAPCAT 8C "RELEASEDATE" "OpenLDAP LDVERSION"
2 .\" Copyright 1998-2010 The OpenLDAP Foundation All Rights Reserved.
3 .\" Copying restrictions apply. See COPYRIGHT/LICENSE.
6 slapcat \- SLAPD database to LDIF utility
16 .BI \-d debug-level\fR]
18 .BI \-f slapd.conf\fR]
30 .BI \-o option\fR[ = value\fR]]
32 .BI \-s subtree-dn\fR]
39 is used to generate an LDAP Directory Interchange Format
40 (LDIF) output based upon the contents of a
43 It opens the given database determined by the database number or
44 suffix and writes the corresponding LDIF to standard output or
46 Databases configured as
48 of this one are also output, unless \fB\-g\fP is specified.
50 The entry records are presented in database order, not superior first
51 order. The entry records will include all (user and operational)
52 attributes stored in the database. The entry records will not include
53 dynamically generated attributes (such as subschemaSubentry).
55 The output of slapcat is intended to be used as input to
57 The output of slapcat cannot generally be used as input to
59 or other LDAP clients without first editing the output.
60 This editing would normally include reordering the records
61 into superior first order and removing no-user-modification
62 operational attributes.
66 Only dump entries matching the asserted filter.
70 "(!(entryDN:dnSubtreeMatch:=ou=People,dc=example,dc=com))"
72 will dump all but the "ou=People,dc=example,dc=com" subtree
73 of the "dc=example,dc=com" database.
74 Deprecated; use \fB-H\fP \fIldap:///???(filter)\fP instead.
77 Use the specified \fIsuffix\fR to determine which database to
78 generate output for. The \fB\-b\fP cannot be used in conjunction
84 Enable continue (ignore errors) mode.
85 Multiple occorrences of
92 Enable debugging messages as defined by the specified
99 Specify an alternative
104 specify a config directory.
109 are specified, the config file will be read and converted to
110 config directory format and written to the specified directory.
111 If neither option is specified, an attempt to read the
112 default config directory will be made before trying to use the default
113 config file. If a valid config directory exists then the
114 default config file is ignored.
117 disable subordinate gluing. Only the specified database will be
118 processed, and not its glued subordinates (if any).
121 use dn, scope and filter from URI to only handle matching entries.
124 Write LDIF to specified file instead of standard output.
127 Generate output for the \fIdbnum\fR-th database listed in the
128 configuration file. The config database
129 .BR slapd\-config (5),
130 is always the first database, so use
136 cannot be used in conjunction with the
140 .BI \-o \ option\fR[ = value\fR]
145 Possible generic options/values are:
148 syslog=<subsystems> (see `\-s' in slapd(8))
149 syslog\-level=<level> (see `\-S' in slapd(8))
150 syslog\-user=<user> (see `\-l' in slapd(8))
155 \fIn\fP is the number of columns allowed for the LDIF output
156 (\fIn\fP equal to \fI0\fP uses the default, corresponding to 76).
157 Use \fIno\fP for no wrap.
160 Only dump entries in the subtree specified by this DN.
161 Implies \fB\-b\fP \fIsubtree-dn\fP if no
166 Deprecated; use \fB-H\fP \fIldap:///subtree-dn\fP instead.
171 For some backend types, your
173 should not be running (at least, not in read-write
174 mode) when you do this to ensure consistency of the database. It is
184 To make a text backup of your SLAPD database and put it in a file called
190 SBINDIR/slapcat \-l ldif
200 "OpenLDAP Administrator's Guide" (http://www.OpenLDAP.org/doc/admin/)