kopano-archiver.8 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236
  1. '\" t
  2. .\" Title: kopano-archiver
  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" "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 \- Manages kopano archives and performs the archive operation\&.
  32. .SH "SYNOPSIS"
  33. .HP \w'\fBkopano\-archiver\fR\ 'u
  34. \fBkopano\-archiver\fR [\fIOPTION\fR...]
  35. .SH "DESCRIPTION"
  36. .PP
  37. This tool is used to attach or detach archives to a users store\&. An archive is defined as a special non\-active store or a folder inside such a store\&.
  38. .PP
  39. On top of managing archives, this tool is used to perform the actual archive operation\&. Using the
  40. \fI\-u\fR
  41. option, the archiver can be instructed to archive a single store or all stores\&.
  42. .SH "ACTIONS"
  43. .PP
  44. kopano\-archiver needs an action command with the appropriate options\&. Valid actions are:
  45. .PP
  46. \fB\-l\fR, \fB\-\-list\fR
  47. .RS 4
  48. List archives for the specified user\&. The
  49. \fI\-u\fR
  50. option is required\&.
  51. .RE
  52. .PP
  53. \fB\-L\fR, \fB\-\-list\-archiveusers\fR
  54. .RS 4
  55. List users that have an archive attached\&.
  56. .RE
  57. .PP
  58. \fB\-A\fR, \fB\-\-archive\fR
  59. .RS 4
  60. Perform an archive run\&. If a
  61. \fI\-u\fR
  62. option is provided, only the store of one user will be archived\&. Otherwise all stores are archived\&. Optionally the
  63. \fI\-\-local\-only\fR
  64. option can be set to only archive stores that exist on the server to which kopano\-archiver is connected (usually the local server)\&.
  65. .RE
  66. .PP
  67. \fB\-C\fR, \fB\-\-cleanup\fR
  68. .RS 4
  69. Perform an archive cleanup run\&. If a
  70. \fI\-u\fR
  71. option is provided, only the archives of one user will be cleaned\&. Otherwise all stores are cleaned\&. Optionally the
  72. \fI\-\-local\-only\fR
  73. option can be set to only cleanup archives of users that have their primary store on the server to which kopano\-archiver is connected (usually the local server)\&.
  74. .RE
  75. .PP
  76. \fB\-a\fR \fIarchive\fR, \fB\-\-attach\-to\fR \fIarchive\fR
  77. .RS 4
  78. Attach an archive to the store of the user specified with the
  79. \fI\-u\fR
  80. option\&. If no additional options are specified, a folder will be created in the archive store, which will act as the root of the archive for the user\&. The foldername will be set to the username of the user\&. This behavior can be changed by providing the
  81. \fI\-\-archive\-folder \fR
  82. or
  83. \fI\-\-no\-folder\fR
  84. option\&.
  85. .RE
  86. .PP
  87. \fB\-d\fR \fIarchive\fR, \fB\-\-detach\-from\fR \fIarchive\fR
  88. .RS 4
  89. Detach an archive from the store of the user specified with the
  90. \fI\-u\fR
  91. option\&. kopano\-archiver will automatically determine which folder to detach\&. However if a user has two archives in one archive store, kopano\-archiver won\*(Aqt be able to tell which one needs to be detached\&. In this case the folder needs to be specified with the
  92. \fI\-\-archive\-folder\fR
  93. option\&.
  94. .RE
  95. .PP
  96. \fB\-D\fR \fIarchiveno\fR, \fB\-\-detach\fR \fIarchiveno\fR
  97. .RS 4
  98. Detach an archive from the store of the user specified with the
  99. \fI\-u\fR
  100. option\&. The archive to detach is indicated by archiveno and can be obtained by running
  101. \fBkopano\-archiver\fR
  102. \fB\-u\fR
  103. \fIusername\fR
  104. \fB\-l\fR
  105. .RE
  106. .PP
  107. \fB\-\-auto\-attach\fR
  108. .RS 4
  109. When no user is specified with \-u, all users will have their archives attached or detached based on the LDAP/ADS settings\&. If a user is specified only that user\*(Aqs store will be processed\&. This option can be combined with
  110. \fI\-A\fR
  111. to force an auto\-attach run regardless of the
  112. \fIenable_auto_attach\fR
  113. configuration option\&.
  114. .RE
  115. .SH "OPTIONS"
  116. .PP
  117. The options used by actions are as follows:
  118. .PP
  119. \fB\-u\fR \fIusername\fR
  120. .RS 4
  121. Use this parameter to specify a user on which store to perform the provided action\&.
  122. .RE
  123. .PP
  124. \fB\-\-local\-only\fR
  125. .RS 4
  126. If this option is passed when an archive run is started, only stores that exist on the server to which kopano\-archiver is connected will be archived\&.
  127. .RE
  128. .PP
  129. \fB\-\-archive\-folder\fR \fIfoldername\fR
  130. .RS 4
  131. Use this option to force kopano\-archiver to create the archive folder with a different name than the username of the user for whom to attach an archive\&.
  132. .RE
  133. .PP
  134. \fB\-\-archive\-server\fR \fIserverpath\fR
  135. .RS 4
  136. Use this option to specify the path to the archive server\&. This is useful when using the archiver in a non\-multiserver setup\&.
  137. .RE
  138. .PP
  139. \fB\-\-no\-folder\fR
  140. .RS 4
  141. Use this option to force kopano\-archiver to create the root of the archive in the root of the archive store (IPM subtree)\&. This way only one user store can be attached to an archive\&.
  142. .RE
  143. .PP
  144. \fB\-w\fR
  145. .RS 4
  146. By default kopano\-archiver makes an archive read\-only for the user\&. By passing this option, the user will get read/write permissions in the attached archive\&.
  147. .sp
  148. This will override the
  149. \fIauto_attach_writable \fR
  150. configuration options when auto attaching archives\&.
  151. .RE
  152. .PP
  153. \fB\-\-writable\fR \fIyes|no\fR
  154. .RS 4
  155. Explicitly enable or disable write permissions when (auto) attaching archives\&.
  156. .sp
  157. This will override the
  158. \fIauto_attach_writable \fR
  159. configuration options when auto attaching archives\&.
  160. .RE
  161. .PP
  162. \fB\-c\fR \fIfile\fR
  163. .RS 4
  164. Select an alternate config file to be used by kopano\-archiver\&.
  165. .sp
  166. Default:
  167. \fI/etc/kopano/archiver\&.cfg\fR
  168. .RE
  169. .SH "EXAMPLES"
  170. .PP
  171. For attaching an archive:
  172. .PP
  173. \fBkopano\-archiver\fR
  174. \fB\-u\fR
  175. \fIusername\fR
  176. \fB\-\-attach\-to\fR
  177. \fIarchive\fR
  178. .PP
  179. For attaching an archive with a custom archive name:
  180. .PP
  181. \fBkopano\-archiver\fR
  182. \fB\-u\fR
  183. \fIusername\fR
  184. \fB\-\-attach\-to\fR
  185. \fIarchive\fR
  186. \fB\-\-archive\-name\fR
  187. \fIarchivename\fR
  188. .PP
  189. For attaching an archive without an archive folder:
  190. .PP
  191. \fBkopano\-archiver\fR
  192. \fB\-u\fR
  193. \fIusername\fR
  194. \fB\-\-attach\-to\fR
  195. \fIarchive\fR
  196. \fB\-\-no\-folder\fR
  197. .PP
  198. For detaching an archive:
  199. .PP
  200. \fBkopano\-archiver\fR
  201. \fB\-u\fR
  202. \fIusername\fR
  203. \fB\-\-detach\-from\fR
  204. \fIarchive\fR
  205. .PP
  206. For starting an archive run:
  207. .PP
  208. \fBkopano\-archiver\fR
  209. \fB\-A\fR
  210. .PP
  211. For starting an archive run for one user:
  212. .PP
  213. \fBkopano\-archiver\fR
  214. \fB\-u\fR
  215. \fIusername\fR
  216. \fB\-A\fR
  217. .PP
  218. For starting a cleanup run:
  219. .PP
  220. \fBkopano\-archiver\fR
  221. \fB\-C\fR
  222. .PP
  223. For starting a cleanup run for one user:
  224. .PP
  225. \fBkopano\-archiver\fR
  226. \fB\-u\fR
  227. \fIusername\fR
  228. \fB\-C\fR
  229. .SH "AUTHOR"
  230. .PP
  231. Written by Kopano\&.
  232. .SH "SEE ALSO"
  233. .PP
  234. \fBkopano-server\fR(8),
  235. \fBkopano-archiver.cfg\fR(5)