HP-UX Directory Server 8.1 configuration, command, and file reference
Table A-2 ldif2db options (continued)
DescriptionOption
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.
-i ldifFile
Specifies the name of the backend to be imported.
-n backendInstance
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 HP-UX Directory Server administrator guide for further information.
-O
Specifies the suffix or suffixes within the LDIF file to import.
-sincludeSuffix
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.
-xexcludeSuffix
A.5 Utilities for restoring and backing up databases: archive2db
Restores database from the archives.
Syntax
ns-slapd archive2db -D configDir -a archiveDir
Options
Table A-3 archive2db options
DescriptionOption
Specifies the location of the server configuration directory that contains the configuration
information for the index creation process. This must be the full path to the configuration
directory, /etc/opt/dirsrv/slapd-instance_name.
-D configDir
Specifies the archive directory.
-a archiveDir
A.6 Utilities for restoring and backing up databases: db2archive
Backs up all databases to the archives.
Syntax
ns-slapd db2archive -D configDir -a archiveDir
Options
Table A-4 db2archive options
DescriptionOption
Specifies the location of the server configuration directory that contains the configuration
information for the index creation process. This must be the full path to the configuration
directory, /etc/opt/dirsrv/slapd-instance_name.
-D configDir
Specifies the archive directory.
-a archiveDir
A.7 Utilities for creating and regenerating indexes: db2index
Creates and regenerates indexes.
Syntax
ns-slapd db2index -D configDir [ -d debugLevel] -n backendName -t
attributeName[:indexTypes{:matchingRules}] [ -T vlvTag]
A.5 Utilities for restoring and backing up databases: archive2db 245