db2ldif.8 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  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 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 - Directory Server script for exporting the database
  20. .SH SYNOPSIS
  21. db2ldif [\-Z serverID] {\-n backend_instance}* | {\-s includeSuffix}* [{\-x excludeSuffix}*] [\-a outputFile] [\-m] [\-M] [\-r] [\-u] [\-U] [\-C] [\-N] [\-E] [\-1] [\-q] [\-h]
  22. .SH DESCRIPTION
  23. Exports the contents of the database to a LDIF file. This script can be executed while the server is still running, except when using the \-r option.
  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 reindex. Example: userRoot
  33. .TP
  34. .B \fB\-s\fR \fIincludeSuffix\fR
  35. Specifies suffixes to be included in the LDIF file.
  36. .TP
  37. .B \fB\-x\fR \fIexcludeSuffix\fR
  38. Specifies suffixes to be excluded from the LDIF file.
  39. .TP
  40. .B \fB\-a\fR \fIOutput File\fR
  41. The name for the LDIF file.
  42. .TP
  43. .B \fB\-m\fR
  44. .br
  45. Minimize the base64 encodings in the exported LDIF file.
  46. .TP
  47. .B \fB\-M\fR
  48. .br
  49. Exported ldif is stored in multiple files. These files are named : <instance>_<filename>
  50. .br
  51. By default, all instances are stored in the filename specified by the \-a option.
  52. .TP
  53. .B \fB\-r\fR
  54. .br
  55. Export replication data(information required to initialize a replica when the LDIF is imported).
  56. .TP
  57. .B \fB\-u\fR
  58. .br
  59. Do not export the unique-id attribute.
  60. .TP
  61. .B \fB\-U\fR
  62. .br
  63. Requests that the output LDIF is not folded.
  64. .TP
  65. .B \fB\-C\fR
  66. .br
  67. Uses only the main database file.
  68. .TP
  69. .B \fB\-N\fR
  70. .br
  71. Suppress printing sequential number
  72. .TP
  73. .B \fB\-E\fR
  74. .br
  75. Decrypts any encrypted data during export.
  76. .TP
  77. .B \fB\-1\fR
  78. .br
  79. Deletes, for reasons of backward compatibility, the first line of the LDIF file that gives the version of the LDIF standard.
  80. .TP
  81. .B \fB\-q\fR
  82. .br
  83. Quiet mode. Suppresses output of the script.
  84. .TP
  85. .B \fB\-h\fR
  86. .br
  87. Display the usage.
  88. .SH EXAMPLE
  89. .TP
  90. db2ldif \-Z instance3 \-n userRoot \-a /LDAP/ldif/export.ldif
  91. .TP
  92. db2ldif \-s 'dc=example,dc=com' \-a /LDAP/ldif/export.ldif \-m \-E \-q
  93. .SH DIAGNOSTICS
  94. Exit status is zero if no errors occur. Errors result in a
  95. non-zero exit status and a diagnostic message being written
  96. to standard error.
  97. .SH AUTHOR
  98. db2ldif was written by the 389 Project.
  99. .SH "REPORTING BUGS"
  100. Report bugs to https://fedorahosted.org/389/newticket.
  101. .SH COPYRIGHT
  102. Copyright \(co 2013 Red Hat, Inc.