Table A-2 ldif2db options (continued)

Option

Description

-ildifFile

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.

-OSpecifies 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.

-sincludeSuffixSpecifies the suffix or suffixes within the LDIF file to import.

-xexcludeSuffixSpecifies suffixes within the LDIF file to exclude during the import. There can be multiple -xarguments. This option can selectively import portions of the LDIF file. If both -xand -sare used with the same suffix, -xtakes precedence. Exclusion always takes precedence over inclusion. If -xor -sare 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.

A.5 Utilities for restoring and backing up databases: archive2db

Restores database from the archives.

Syntax

ns-slapd archive2db -DconfigDir -aarchiveDir Options

Table A-3 archive2db options

Option

Description

-DconfigDir

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.

-aarchiveDir

Specifies the archive directory.

A.6 Utilities for restoring and backing up databases: db2archive

Backs up all databases to the archives.

Syntax

ns-slapd db2archive -DconfigDir -aarchiveDir Options

Table A-4 db2archive options

Option

Description

-DconfigDir

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.

-aarchiveDir

Specifies the archive directory.

A.7 Utilities for creating and regenerating indexes: db2index

Creates and regenerates indexes.

Syntax

ns-slapd db2index -DconfigDir [ -ddebugLevel] -nbackendName -tattributeName[:indexTypes{:matchingRules}] [ -TvlvTag]

A.5 Utilities for restoring and backing up databases: archive2db 245

Page 245
Image 245
HP UX Identity Security Software manual Utilities for restoring and backing up databases archive2db