Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

db2ldif(8) [centos man page]

DB2LDIF(8)						      System Manager's Manual							DB2LDIF(8)

NAME
db2ldif - Directory Server script for exporting the database SYNOPSIS
db2ldif [-Z serverID] {-n backend_instance}* | {-s includeSuffix}* [{-x excludeSuffix}*] [-a outputFile] [-m] [-M] [-r] [-u] [-U] [-C] [-N] [-E] [-1] [-q] [-h] DESCRIPTION
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. OPTIONS
A summary of options is included below: -Z Server Identifier The server ID of the Directory Server instance. If there is only one instance on the system, this option can be skipped. -n Backend Name The name of the LDBM database to reindex. Example: userRoot -s includeSuffix Specifies suffixes to be included in the LDIF file. -x excludeSuffix Specifies suffixes to be excluded from the LDIF file. -a Output File The name for the LDIF file. -m Minimize the base64 encodings in the exported LDIF file. -M Exported ldif is stored in multiple files. These files are named : <instance>_<filename> By default, all instances are stored in the filename specified by the -a option. -r Export replication data(information required to initialize a replica when the LDIF is imported). -u Do not export the unique-id attribute. -U Requests that the output LDIF is not folded. -C Uses only the main database file. -N Suppress printing sequential number -E Decrypts any encrypted data during export. -1 Deletes, for reasons of backward compatibility, the first line of the LDIF file that gives the version of the LDIF standard. -q Quiet mode. Suppresses output of the script. -h Display the usage. EXAMPLE
db2ldif -Z instance3 -n userRoot -a /LDAP/ldif/export.ldif db2ldif -s 'dc=example,dc=com' -a /LDAP/ldif/export.ldif -m -E -q DIAGNOSTICS
Exit status is zero if no errors occur. Errors result in a non-zero exit status and a diagnostic message being written to standard error. AUTHOR
db2ldif was written by the 389 Project. REPORTING BUGS
Report bugs to http://bugzilla.redhat.com. COPYRIGHT
Copyright (C) 2013 Red Hat, Inc. Mar 5, 2013 DB2LDIF(8)

Check Out this Related Man Page

SLAPCAT(8C)															       SLAPCAT(8C)

NAME
slapcat - SLAPD database to LDIF utility SYNOPSIS
/usr/sbin/slapcat [-v] [-c] [-d level] [-b suffix] [-n dbnum] [-f slapd.conf] [-l ldif-file] DESCRIPTION
Slapcat is used to generate an LDAP Directory Interchange Format (LDIF) output based upon the contents of a slapd(8) database. It opens the given database determined by the database number or suffix and writes the corresponding LDIF to standard output or the specified file. The LDIF generated by this tool is suitable for use with slapadd(8). As the entries are in database order, not superior first order, they cannot be loaded with ldapadd(8) without being reordered. OPTIONS
-v enable verbose mode. -c enable continue (ignore errors) mode. -d level enable debugging messages as defined by the specified level. -b suffix Use the specified suffix to determine which database to generate output for. The -b cannot be used in conjunction with the -n option. -n dbnum Generate output for the dbnum-th database listed in the configuration file. The -n cannot be used in conjunction with the -b option. -f slapd.conf specify an alternative slapd.conf(5) file. -l ldif-file Write LDIF to specified file instead of standard output. Limitations Your slapd(8) should not be running (at least, not in read-write mode) when you do this to ensure consistency of the database. EXAMPLES
To make a text backup of your SLAPD database and put it in a file called ldif, give the command: /usr/sbin/slapcat -l ldif SEE ALSO
ldap(3), ldif(5), slapadd(8), ldapadd(1), slapd(8) "OpenLDAP Administrator's Guide" (http://www.OpenLDAP.org/doc/admin/) ACKNOWLEDGEMENTS
OpenLDAP is developed and maintained by The OpenLDAP Project (http://www.openldap.org/). OpenLDAP is derived from University of Michigan LDAP 3.3 Release. OpenLDAP 2.0.27-Release 2 October 2000 SLAPCAT(8C)
Man Page