kopano-archiver-restore.8 4.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. '\" t
  2. .\" Title: kopano-archiver-restore
  3. .\" Author: [see the "Author" section]
  4. .\" Generator: DocBook XSL Stylesheets v1.79.1 <http://docbook.sf.net/>
  5. .\" Date: November 2016
  6. .\" Manual: Kopano Core user reference
  7. .\" Source: Kopano 8
  8. .\" Language: English
  9. .\"
  10. .TH "KOPANO\-ARCHIVER\-RE" "8" "November 2016" "Kopano 8" "Kopano Core user reference"
  11. .\" -----------------------------------------------------------------
  12. .\" * Define some portability stuff
  13. .\" -----------------------------------------------------------------
  14. .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  15. .\" http://bugs.debian.org/507673
  16. .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
  17. .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  18. .ie \n(.g .ds Aq \(aq
  19. .el .ds Aq '
  20. .\" -----------------------------------------------------------------
  21. .\" * set default formatting
  22. .\" -----------------------------------------------------------------
  23. .\" disable hyphenation
  24. .nh
  25. .\" disable justification (adjust text to left margin only)
  26. .ad l
  27. .\" -----------------------------------------------------------------
  28. .\" * MAIN CONTENT STARTS HERE *
  29. .\" -----------------------------------------------------------------
  30. .SH "NAME"
  31. kopano-archiver-restore \- Restore all stubbed and removed messages in a primary store with the messages found in the currently or previously attached archives(s)\&.
  32. .SH "SYNOPSIS"
  33. .HP \w'\fBkopano\-archiver\-restore\fR\ 'u
  34. \fBkopano\-archiver\-restore\fR [\fIOPTION\fR...]
  35. .SH "DESCRIPTION"
  36. .PP
  37. kopano\-archiver\-restore can be used to repopulate a primary store to a state where no archive is required to read any message\&. In a less cryptic way this means that all stubbed messages are destubbed and all messages that were deleted after archiving are restored\&.
  38. .PP
  39. The advantage of using kopano\-archiver\-restore over dragging the messages back from the archive in Outlook or Webaccess is that the restores messages are sanitized, allowing them to be properly rearchived later\&.
  40. .SH "STRATEGY"
  41. .PP
  42. The strategy taken by kopano\-archiver\-restore is that it iterates through all folder in the primary store, and tries to open the archive folders that are attached to that store\&. There can be more than one attached archive folder, and these folders are not required to exist in an archive that is currently attached\&. So folders of previously used archives will be restored as well if they still exist\&.
  43. .PP
  44. Once the archives have been resolved, kopano\-archiver\-restore will create a list of restorable messages based on the reference entryid found in the archived copies\&. When multiple archives are found, multiple archived copies for the same primary message can exist\&. In that case kopano\-archiver\-restore will choose the most recent one\&.
  45. .PP
  46. Once the list of restorable messages is complete, kopano\-archiver\-restore will start restoring by first determining if the primary message, referenced by the reference entryid from the archived copies exist and if so if it is stubbed\&. If the primary message exists and is not stubbed, there\*(Aqs no need to restore anything\&. If the message exists but is stubbed, it will be destubbed\&. If the primary message does not exist, a new message is created based on the archived copy\&. In this case the archived copy is updated so it will reference the newly created message\&. This is needed to make sure a subsequent run of kopano\-archiver\-restore won\*(Aqt create another copy\&.
  47. .SH "OPTIONS"
  48. .PP
  49. \fB\-\-detach\fR
  50. .RS 4
  51. Detach the selected or all archive stores before starting the restore procedure\&. This avoids the archiver from re\-archiving restored messages\&.
  52. .RE
  53. .PP
  54. \fB\-\-unhook\fR
  55. .RS 4
  56. Unhook the selected ot all archive stores once the restore process has completed\&. This implies \-\-detach and only works on archive stores\&.
  57. .RE
  58. .PP
  59. \fB\-\-remove\fR
  60. .RS 4
  61. Remove the selected ot all archive stores once the restore process has completed\&. This implies \-\-unhook and only works on archive stores\&.
  62. .RE
  63. .PP
  64. \fB\-\-user\fR, \fB\-u\fR \fINAME\fR
  65. .RS 4
  66. Run the script for just the specified user(s)\&. By default, it runs for all users\&.
  67. .RE
  68. .PP
  69. \fB\-\-log\-level\fR, \fB\-l\fR \fINAME\fR
  70. .RS 4
  71. Specify log\-level, for example, \*(Aqerror\*(Aq, \*(Aqwarning\*(Aq \*(Aqinfo\*(Aq or \*(Aqdebug\*(Aq\&.
  72. .RE
  73. .PP
  74. \fB\-\-server\-socket\fR, \fB\-s\fR \fISOCKET\fR
  75. .RS 4
  76. Connect to storage server through specified socket\&.
  77. .RE
  78. .PP
  79. \fB\-\-ssl\-key\fR, \fB\-k\fR \fIFILE\fR
  80. .RS 4
  81. Specify SSL key file\&.
  82. .RE
  83. .PP
  84. \fB\-\-ssl\-pass\fR, \fB\-p\fR \fIPASSWORD\fR
  85. .RS 4
  86. Specify SSL key password\&.
  87. .RE
  88. .SH "AUTHOR"
  89. .PP
  90. Written by Zarafa\&.