Utilities for Restoring and Backing up Databases: ldif2db
323
Option
Description
the configuration directory, do not exclude
o=NetscapeRoot
.
Table A.1. db2ldif Options
A.4. Utilities for Restoring and Backing up Databases:
ldif2db
Imports LDIF files to the database.
Syntax
ns-slapd ldif2db
-D
configDir
-i
ldifFile
[ -d
debugLevel
] [ -g
string
] [ -n
backendInstance
] [ -O ] [ -s
includeSuffix
] [ -x
excludeSuffix
] [ -E ]
Enter the full path to the server configuration directory (
configdir
).
ldifFile
is the name of the file
containing the LDIF to be imported. There is an example LDIF file under the
/var/lib/dirsrv/
slapd-
instance_name
/ldif
directory. Either the
-n
or the
-s
option must be specified.
Options
Option
Description
-d
debugLevel
Specifies the debug level to use during runtime.
For further information, refer to
Section 2.3.1.44,
“nsslapd-errorlog-level (Error Log Level)”
.
-D
configDir
Specifies the location of the server configuration
directory that contains the configuration
information for the import process. This must be
the full path to the configuration directory,
/etc/
dirsrv/slapd-
instance_name
.
-E
Decrypts an encrypted database during export.
This option is used only if database encryption is
enabled.
-g
string
Generates a unique ID. Type
none
for no unique
ID to be generated and
deterministic
for
the generated unique ID to be name-based. By
default, a time-based unique ID is generated.
When using the
deterministic
generation to
have a name-based unique ID, it is also possible
to specify the namespace for the server to use,
as follows:
-g deterministic
namespaceId
namespaceId
is a string of characters in the
format
00-xxxxxxxx-xxxxxxxx-xxxxxxxx-
xxxxxxxx
.
Summary of Contents for 8.1
Page 8: ...viii ...
Page 14: ...xiv ...
Page 16: ...2 ...
Page 250: ...236 ...
Page 334: ...320 ...
Page 372: ...358 ...