db2ldif.pl.8 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  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 DB2LDIF.PL 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. db2ldif.pl - Directory Server perl script for exporting a database to a LDIF file
  20. .SH SYNOPSIS
  21. db2ldif.pl [\-Z serverID] [\-D rootdn] { \-w password | \-w \- | \-j pwfilename } [\-P protocol]
  22. {\-n backendname}* | {\-s includeSuffix}* [{\-x excludeSuffix}*] [\-m] [\-M] [\-r] [\-u] [\-C] [\-N] [\-E] [\-1] [\-U] [\-a filename] [\-v] [\-h]
  23. .SH DESCRIPTION
  24. Exports the contents of the database to LDIF. This script creates an entry in the directory that launches this dynamic task.
  25. .SH OPTIONS
  26. A summary of options is included below:
  27. .TP
  28. .B \fB\-Z\fR \fIServer Identifier\fR
  29. The server ID of the Directory Server instance. If there is only
  30. one instance on the system, this option can be skipped.
  31. .TP
  32. .B \fB\-D\fR \fIRoot DN\fR
  33. The Directory Manager DN, or root DN. If not specified, the script will
  34. search the server instance configuration for the value.
  35. .TP
  36. .B \fB\-w\fR \fIpassword\fR
  37. The rootdn password.
  38. .TP
  39. .B \fB\-w -\fR
  40. .br
  41. Prompt for the rootdn password.
  42. .TP
  43. .B \fB\-j\fR \fIpassword filename\fR
  44. The name of the file that contains the root DN password.
  45. .TP
  46. .B \fB\-n\fR \fIBackend Name\fR
  47. The name of the LDBM database to restore. Example: userRoot
  48. .TP
  49. .B \fB\-s\fR \fIincludeSuffix\fR
  50. The suffix DN to be included in the exported LDIF file.
  51. .TP
  52. .B \fB\-x\fR \fIexcludeSuffix\fR
  53. The suffix DN to be excluded from the exported LDIF file.
  54. .TP
  55. .B \fB\-a\fR \fIfilename\fR
  56. Name for the exported LDIF file.
  57. .TP
  58. .B \fB\-P\fR \fIProtocol\fR
  59. The connection protocol to connect to the Directory Server. Protocols are STARTTLS, LDAPS, LDAPI, and LDAP.
  60. If this option is skipped, the most secure protocol that is available is used. For LDAPI, AUTOBIND is also
  61. available for the root user.
  62. .TP
  63. .B \fB\-m\fR
  64. .br
  65. Minimize the base64 encodings in the exported LDIF file.
  66. .TP
  67. .B \fB\-M\fR
  68. .br
  69. Exported ldif is stored in multiple files. These files are named : <instance>_<filename>
  70. .br
  71. By default, all instances are stored in the filename specified by the \-a option.
  72. .TP
  73. .B \fB\-r\fR
  74. .br
  75. Export replication data(information required to initialize a replica when the LDIF is imported).
  76. .TP
  77. .B \fB\-u\fR
  78. .br
  79. Do not export the unique-id attribute.
  80. .TP
  81. .B \fB\-U\fR
  82. .br
  83. Requests that the output LDIF is not folded.
  84. .TP
  85. .B \fB\-C\fR
  86. .br
  87. Uses only the main database file.
  88. .TP
  89. .B \fB\-N\fR
  90. .br
  91. Suppress printing sequential number
  92. .TP
  93. .B \fB\-E\fR
  94. .br
  95. Decrypts any encrypted data during export.
  96. .TP
  97. .B \fB\-1\fR
  98. .br
  99. Deletes, for reasons of backward compatibility, the first line of the LDIF file that gives the version of the LDIF standard.
  100. .TP
  101. .B \fB\-v\fR
  102. .br
  103. Display verbose output
  104. .TP
  105. .B \fB\-h\fR
  106. .br
  107. Display usage
  108. .SH EXAMPLE
  109. .TP
  110. db2ldif.pl \-Z instance3 \-n userRoot \-a /LDAP/ldif/export.ldif \-P STARTTLS
  111. Note: security must be enabled to use protocol STARTTLS. If STARTTLS is not available it will default to next strongest/available protocol automatically.
  112. .TP
  113. db2ldif.pl \-s 'dc=example,dc=com' \-a /LDAP/ldif/export.ldif \-m \-E \-q
  114. .SH DIAGNOSTICS
  115. Exit status is zero if no errors occur. Errors result in a
  116. non-zero exit status and a diagnostic message being written
  117. to standard error.
  118. .SH AUTHOR
  119. db2ldif.pl was written by the 389 Project.
  120. .SH "REPORTING BUGS"
  121. Report bugs to https://fedorahosted.org/389/newticket.
  122. .SH COPYRIGHT
  123. Copyright \(co 2013 Red Hat, Inc.