ldif2db.8 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. .\" Hey, EMACS: -*- nroff -*-
  2. .\" First parameter, NAME, should be all caps
  3. .\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
  4. .\" other parameters are allowed: see man(7), man(1)
  5. .TH LDIF2DB 8 "Mar 5, 2013"
  6. .\" Please adjust this date whenever revising the manpage.
  7. .\"
  8. .\" Some roff macros, for reference:
  9. .\" .nh disable hyphenation
  10. .\" .hy enable hyphenation
  11. .\" .ad l left justify
  12. .\" .ad b justify to both left and right margins
  13. .\" .nf disable filling
  14. .\" .fi enable filling
  15. .\" .br insert line break
  16. .\" .sp <n> insert n+1 empty lines
  17. .\" for manpage-specific macros, see man(7)
  18. .SH NAME
  19. ldif2db - Directory Server script for importing a LDIF file
  20. .SH SYNOPSIS
  21. ldif2db [-Z serverID] -n backendname {-s includesuffix}* [{-x excludesuffix}*] [-g [string] [-G namespace_id]] {-i ldiffile}* [-c chunksize] [-O] [-E] [-q] [-h]
  22. .SH DESCRIPTION
  23. Imports a LDIF file. Either the option '-n' or '-s' must be used. The server instance must be stopped prior to running this command.
  24. .SH OPTIONS
  25. A summary of options is included below:
  26. .TP
  27. .B \fB\-Z\fR \fIServer Identifier\fR
  28. The server ID of the Directory Server instance. If there is only
  29. one instance on the system, this option can be skipped.
  30. .TP
  31. .B \fB\-n\fR \fIBackend Name\fR
  32. The name of the LDBM database to restore. Example: userRoot
  33. .TP
  34. .B \fB\-s\fR \fIincludeSuffix\fR
  35. Specifies the suffixes to be included or specifies the subtrees to be included.
  36. .TP
  37. .B \fB\-x\fR \fIexcludeSuffix\fR
  38. Specifies the suffixes to be excluded or specifies the subtrees to be excluded.
  39. .TP
  40. .B \fB\-i\fR \fIfilename\fR
  41. Name for the LDIF file to import.
  42. .TP
  43. .B \fB\-c\fR \fIChunk size\fR
  44. The number of entries to process before starting a fresh pass during the import. By default this is handled internally by the server.
  45. .TP
  46. .B \fB\-O\fR
  47. .br
  48. Requests that only the core database is created without attribute indexes.
  49. .TP
  50. .B \fB\-g\fR \fI[string]\fR
  51. 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:
  52. -g deterministic namespaceId
  53. namespaceId is a string of characters in the format 00-xxxxxxxx-xxxxxxxx-xxxxxxxx-xxxxxxxx.
  54. .TP
  55. .B \fB\-G\fR \fInamespace_id\fR
  56. Generates a namespace ID as a name-based unique ID. This is the same as specifying the -g deterministic option.
  57. .TP
  58. .B \fB\-E\fR
  59. .br
  60. Encrypts data during import. This option is used only if database encryption is enabled.
  61. .TP
  62. .B \fB\-v\fR
  63. .br
  64. Display verbose ouput
  65. .TP
  66. .B \fB\-h\fR
  67. .br
  68. Display usage
  69. .SH EXAMPLE
  70. .TP
  71. ldif2db -Z instance1 -n userRoot -i /LDAP/ldif/data.ldif
  72. .TP
  73. ldif2db -s "dc=example,dc=com" -i /LDAP/ldif/data.ldif
  74. .SH DIAGNOSTICS
  75. Exit status is zero if no errors occur. Errors result in a
  76. non-zero exit status and a diagnostic message being written
  77. to standard error.
  78. .SH AUTHOR
  79. ldif2db was written by the 389 Project.
  80. .SH "REPORTING BUGS"
  81. Report bugs to http://bugzilla.redhat.com.
  82. .SH COPYRIGHT
  83. Copyright \(co 2013 Red Hat, Inc.