Ability to backup and restore the Server's primary data directory.


Try This:

Backup the directory database using Netscape Console.



See Chapter 4 of the Directory Server Administration Guide.

Backup & Restore

     
    Backing up and restoring the Directory Server database can be done through either the Server Administration window in Netscape Console, or through two command line utilities:
    • db2bak ("database to backup")
    • bak2db ("backup to database")


    If you want to use the Console, select the Tasks tab and then click  "Back Up the Directory Server" or  "Restore Directory Server".

    If you want to use the command line utilities, at the command prompt change to

      nshome/slapd-serverID
    and run db2bak or bak2db. 

Backup

    You can always specify a custom path to your backup files, but by default, either method of backup (console or command line) stores the database and associated index files under a directory name that identifies the time and date when the backup was created:

                nshome/slapd-serverID/bak/YYYY_MM_DD_HHMMSS

    Let's walk through an online backup of your directory from the command line (try it out now on your own server):

    1. At the command prompt, change to <NSHOME>/slapd-<serverID>. 

    2. Run the db2bak command line script as follows:

         
        db2bak

Restore

    This restore process consists of stopping the server, copying the database and associated index files from the backup location to the database directory, then restarting the server. 

    Let's walk through a restore of your directory using the Directory Server Console (try it out now on your own server):
     

      1. Stop the Directory Server.
       
        a. Select the Tasks tab on the Console.
        b. Click "Stop the Directory Server".
        c. Wait for the message box stating that the server has shut down.
       
      2. Restore the database.
       
        a. From the Tasks tab, click "Restore Directory Server".
        b. Select the backup you just made from the dialog box.
        c. Click OK.
       
      3. Restart the the Directory Server. 
       
        a. From the Tasks tab, click "Start the Directory Server". 
        b. Wait for the message box stating that the server has started up. 

Copyright © 2000
Sun-Netscape Alliance