ns-slapd and slapd.exe Command-Line Utilities for Restoring and Backing up Databases
Appendix
A
Using the ns-slapd and slapd.exe Command-Line Utilities
247
ns-slapd and slapd.exe Command-Line Utilities
for Restoring and Backing up Databases
ldif2db
Imports LDIF files to the database.
Shell script syntax (UNIX)
where ldif_file is the name of the file containing the LDIF to be imported and
slapd-serverID is the location of your server configuration directory. You can find a
demo LDIF file under
/usr/netscape/server4/slapd-
serverID/ldif
. Enter the
full path to the
slapd-
serverID
directory.
Batch file syntax (NT)
Options
ns-slapd ldif2db -D slapd-
serverID
-i
ldif_file
[-d
debug_level] [-g
string
] [-n
backend_instance
] -O [-s
include_suffix
] -x
exclude_suffix
]
slapd ldif2db -D slapd-
serverID
-i
ldif_file
[-d
debug_level
] [-g
string
]
[-n
backend_instance
] [-O] [-s
include_suffix
] [-x
exclude_suffix
]
NOTE
You must specify either the
-n
or the
-s
option.
-d
Specifies the debug level to use during runtime. For further information
see “nsslapd-errorlog-level (Error Log Level)” on page 50.
-D
Specifies the server configuration directory that contains the configuration
information for the import process. You must specify the full path to the
slapd-
serverID directory.