Sun Java System Directory Server Enterprise Edition 6.0 Administration Guide

Restoring the dse.ldif Configuration File

Directory Server creates two backup copies of the dse.ldif file in the following directory:


instance-path/config

The dse.ldif.startOK file records a copy of the dse.ldif file at server start up. The dse.ldif.bak file contains a backup of the most recent changes to the dse.ldif file. Copy the file that contains the most recent changes to your directory.

ProcedureTo Restore the dse.ldif Configuration File

For parts of this procedure, you can use DSCC to perform this task. For information, see Directory Service Control Center Interface and the DSCC online help. Other parts of the procedure can only be done using the command line.

  1. Stop the server.


    $ dsadm stop instance-path
    
  2. Change to the directory that contains the configuration files.


    $ cd instance-path/config
  3. Overwrite the dse.ldif file with a backup configuration file that is known to be valid, for example:


    $ cp dse.ldif.startOK dse.ldif
  4. Start the server with the following command:


    $ dsadm start instance-path