You can back up directory data by exporting the contents of a suffix in the LDIF format. Exporting data can be useful for doing the following:
Backing up the data in your server
Copying your data to another directory server
Exporting your data to another application
Repopulating suffixes after a change to your directory topology
The configuration information cannot be exported.
Do not stop the server while an export operation is in progress.
You can use DSCC to perform this task. For information, see Directory Service Control Center Interface and the DSCC online help.
Use one of the following commands to export a suffix to an LDIF file:
If your server is local and stopped, type:
$ dsadm export instance-path suffix-DN LDIF-file
The dsadm export takes only offline backups.
If your server is running (local or remote), type:
$ dsconf export -h host -p port suffix-DN LDIF-file
The dsconf export takes only online backups.
The following example uses dsconf export to export two suffixes to a single LDIF file:
$ dsconf export -h host1 -p 1389 ou=people,dc=example,dc=com \ ou=contractors,dc=example,dc=com /local/dsInst/ldif/export123.ldif
The ldif file will be created on the machine running the server instance not on the machine running the dsconf command.
The dsadm export and dsconf export commands can also be used with the --no-repl option to specify that no replication information is to be exported. The default is that the replicated suffix is exported to an LDIF file with replication information. The resulting LDIF file will contain attribute subtypes that are used by the replication mechanism. This LDIF file can then be imported on the consumer server to initialize the consumer replica, as described in Initializing Replicas