bak2db.pl.8 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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 BAK2DB.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. bak2db.pl - Directory Server perl script for restoring a backup
  20. .SH SYNOPSIS
  21. bak2db.pl \-a archivedir [\-Z serverID] [\-D rootdn] { \-w password | \-w \- | \-j filename } [\-t dbtype] [\-n backendname] [\-P protocol] [\-v] [\-h]
  22. .SH DESCRIPTION
  23. Restores a database from a backup. The Directory Server must be started prior to running this script.
  24. .SH OPTIONS
  25. A summary of options is included below:
  26. .TP
  27. .B \fB\-a\fR \fIarchivedir\fR
  28. The directory of the archived database.
  29. .TP
  30. .B \fB\-Z\fR \fIServer Identifier\fR
  31. The server ID of the Directory Server instance. If there is only
  32. one instance on the system, this option can be skipped.
  33. .TP
  34. .B \fB\-D\fR \fIRoot DN\fR
  35. The Directory Manager DN, or root DN. If not specified, the script will
  36. search the server instance configuration for the value.
  37. .TP
  38. .B \fB\-w\fR \fIpassword\fR
  39. The rootdn password.
  40. .TP
  41. .B \fB\-w -\fR
  42. .br
  43. Prompt for the rootdn password.
  44. .TP
  45. .B \fB\-j\fR \fIpassword filename\fR
  46. The name of the file that contains the root DN password.
  47. .TP
  48. .B \fB\-t\fR \fIdatabase type\fR
  49. The backend database type (default: ldbm database).
  50. .TP
  51. .B \fB\-n\fR \fIBackend Name\fR
  52. The name of the LDBM database to restore. Example: userRoot
  53. .TP
  54. .B \fB\-P\fR \fIProtocol\fR
  55. The connection protocol to connect to the Directory Server. Protocols are STARTTLS, LDAPS, LDAPI, and LDAP.
  56. If this option is skipped, the most secure protocol that is available is used. For LDAPI, AUTOBIND is also
  57. available for the root user.
  58. .TP
  59. .B \fB\-v\fR
  60. .br
  61. Display verbose output
  62. .TP
  63. .B \fB\-h\fR
  64. .br
  65. Display usage
  66. .SH EXAMPLE
  67. .TP
  68. bak2db.pl \-a /LDAP/backups/20130305/ \-D 'cn=directory manager' \-w password \-n userRoot \-P LDAPS
  69. Note: security must be enabled to use protocol LDAPS. If LDAPS is not available it will default to next strongest/available protocol automatically.
  70. .TP
  71. bak2db.pl \-a /LDAP/backups/20130305/ \-Z instance2 \-w password \-n example \-P LDAPI
  72. .SH DIAGNOSTICS
  73. Exit status is zero if no errors occur. Errors result in a
  74. non-zero exit status and a diagnostic message being written
  75. to standard error.
  76. .SH AUTHOR
  77. bak2db.pl was written by the 389 Project.
  78. .SH "REPORTING BUGS"
  79. Report bugs to https://fedorahosted.org/389/newticket.
  80. .SH COPYRIGHT
  81. Copyright \(co 2013 Red Hat, Inc.