1 .TH SLAPCAT 8C "RELEASEDATE" "OpenLDAP LDVERSION"
2 .\" Copyright 1998-2009 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]
28 .BI \-o option\fR[ = value\fR]]
30 .BI \-s subtree-dn\fR]
37 is used to generate an LDAP Directory Interchange Format
38 (LDIF) output based upon the contents of a
41 It opens the given database determined by the database number or
42 suffix and writes the corresponding LDIF to standard output or
44 Databases configured as
46 of this one are also output, unless \fB\-g\fP is specified.
48 The entry records are presented in database order, not superior first
49 order. The entry records will include all (user and operational)
50 attributes stored in the database. The entry records will not include
51 dynamically generated attributes (such as subschemaSubentry).
53 The output of slapcat is intended to be used as input to
55 The output of slapcat cannot generally be used as input to
57 or other LDAP clients without first editing the output.
58 This editing would normally include reordering the records
59 into superior first order and removing no-user-modification
60 operational attributes.
64 Only dump entries matching the asserted filter.
68 "(!(entryDN:dnSubtreeMatch:=ou=People,dc=example,dc=com))"
70 will dump all but the "ou=People,dc=example,dc=com" subtree
71 of the "dc=example,dc=com" database.
74 Use the specified \fIsuffix\fR to determine which database to
75 generate output for. The \fB\-b\fP cannot be used in conjunction
81 Enable continue (ignore errors) mode.
84 Enable debugging messages as defined by the specified
91 Specify an alternative
96 specify a config directory.
101 are specified, the config file will be read and converted to
102 config directory format and written to the specified directory.
103 If neither option is specified, an attempt to read the
104 default config directory will be made before trying to use the default
105 config file. If a valid config directory exists then the
106 default config file is ignored.
109 disable subordinate gluing. Only the specified database will be
110 processed, and not its glued subordinates (if any).
113 Write LDIF to specified file instead of standard output.
116 Generate output for the \fIdbnum\fR-th database listed in the
117 configuration file. The config database
118 .BR slapd\-config (5),
119 is always the first database, so use
125 cannot be used in conjunction with the
129 .BI \-o \ option\fR[ = value\fR]
134 Possible generic options/values are:
137 syslog=<subsystems> (see `\-s' in slapd(8))
138 syslog\-level=<level> (see `\-S' in slapd(8))
139 syslog\-user=<user> (see `\-l' in slapd(8))
144 Only dump entries in the subtree specified by this DN.
145 Implies \fB\-b\fP \fIsubtree-dn\fP if no
154 For some backend types, your
156 should not be running (at least, not in read-write
157 mode) when you do this to ensure consistency of the database. It is
167 To make a text backup of your SLAPD database and put it in a file called
173 SBINDIR/slapcat \-l ldif
183 "OpenLDAP Administrator's Guide" (http://www.OpenLDAP.org/doc/admin/)