Red Hat 8.1 사용자 설명서

다운로드
페이지 374
Appendix A. Using the ns-slapd Command-Line Utilities
326
Option
Description
Use this option to import the same LDIF file into
two different Directory Servers and the contents
of both directories should have the same set
of unique IDs. If unique IDs already exist in the
LDIF file being imported, then the existing IDs
are imported to the server, regardless of the
options specified.
-i ldifFile
Specifies the LDIF file to be imported. This
option is required. There can be multiple -i
arguments to import more than one LDIF file
at a time. When importing multiple files, the
server imports the LDIF files in the order they are
specified on the command line.
-n backendInstance
Specifies the name of the backend to be
imported.
-O
Specifies that no attribute indexes are created for
the imported database. If this option is specified
and the indexes need to be restored later, the
indexes have to be recreated by hand. See the
Directory Server Administrator's Guide for further
information.
-s includeSuffix
Specifies the suffix or suffixes within the LDIF file
to import.
-x excludeSuffix
Specifies suffixes within the LDIF file to exclude
during the import. There can be multiple -x
arguments. This option can selectively import
portions of the LDIF file. If both -x and -s are
used with the same suffix, -x takes precedence.
Exclusion always takes precedence over
inclusion. If -x or -s are not specified, then all
available suffixes will be imported from the LDIF
file. To import the LDIF file into the configuration
directory, do not exclude o=NetscapeRoot.
Table A.2. ldif2db Options
A.5. Utilities for Restoring and Backing up Databases:
archive2db
Restores database from the archives.
Syntax
ns-slapd archive2db
 -D configDir -a archiveDir