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]
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.
87 Enable debugging messages as defined by the specified
94 Specify an alternative
99 specify a config directory.
104 are specified, the config file will be read and converted to
105 config directory format and written to the specified directory.
106 If neither option is specified, an attempt to read the
107 default config directory will be made before trying to use the default
108 config file. If a valid config directory exists then the
109 default config file is ignored.
112 disable subordinate gluing. Only the specified database will be
113 processed, and not its glued subordinates (if any).
116 use dn, scope and filter from URI to only handle matching entries.
119 Write LDIF to specified file instead of standard output.
122 Generate output for the \fIdbnum\fR-th database listed in the
123 configuration file. The config database
124 .BR slapd\-config (5),
125 is always the first database, so use
131 cannot be used in conjunction with the
135 .BI \-o \ option\fR[ = value\fR]
140 Possible generic options/values are:
143 syslog=<subsystems> (see `\-s' in slapd(8))
144 syslog\-level=<level> (see `\-S' in slapd(8))
145 syslog\-user=<user> (see `\-l' in slapd(8))
150 Only dump entries in the subtree specified by this DN.
151 Implies \fB\-b\fP \fIsubtree-dn\fP if no
156 Deprecated; use \fB-H\fP \fIldap:///subtree-dn\fP instead.
161 For some backend types, your
163 should not be running (at least, not in read-write
164 mode) when you do this to ensure consistency of the database. It is
174 To make a text backup of your SLAPD database and put it in a file called
180 SBINDIR/slapcat \-l ldif
190 "OpenLDAP Administrator's Guide" (http://www.OpenLDAP.org/doc/admin/)