Oracle Fusion Middleware Administration Guide for Oracle Directory Server Enterprise Edition

ProcedureTo Restore Your Server

You can use DSCC to perform this task. For information, see Directory Service Control Center Interface and the DSCC online help.

  1. Use one of the following commands to restore your server:

    • If your server is local and stopped, type:

      $ dsadm restore instance-path archive-dir

      For example, to restore a backup from a backup directory, type:

      $ dsadm restore /local/dsInst/ local/ds/bak/2006_07_01_11_34_00
    • If your server is running, type:

      $ dsconf restore -h host -p port archive-dir

      For example, to restore a backup from a backup directory:

      $ dsconf restore -h host1 -p 1389 /local/dsInst/bak/2006_07_01_11_34_00 

      Do not stop the server during a restore operation.

      Note –

      The backup copy must be saved on the server, not on the system that is running the dsconf command.

      After a restore, there is no way to go back to the original server content.

    Note –

    To save disk space, you can restore the server by moving files instead of copying them. You can perform this operation by setting the —f move-archive flag with the dsadm restore or the dsconf restore command. However, if the transaction logs cannot be moved during the copyless restore operation, the copy operation is performed instead.

    For this operation to complete successfully, the backup and instance files must be on the same filesystem. If you choose to perform the copyless restore, the server data is overwritten with the data in the backup copy and the backup copy also gets destroyed.

    For more information about these commands, see the dsadm(1M) and dsconf(1M) man pages.