kopano-backup.8 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234
  1. '\" t
  2. .\" Title: kopano-backup
  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\-BACKUP" "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-backup \- The Kopano Backup tool
  32. .SH "SYNOPSIS"
  33. .HP \w'\fBkopano\-backup\fR\ 'u
  34. \fBkopano\-backup\fR [\fIOPTION\fR...] [\fIPATH\fR]
  35. .SH "DESCRIPTION"
  36. .PP
  37. Kopano\-backup is used to create or restore backups of user data, such as one or more stores or folders\&. This includes emails, calendar items, contacts, etc\&., as well as user settings such as rules, permissions and WebApp settings\&.
  38. .PP
  39. Backups are performed incrementally, when for a given user/store there already exists a backup directory\&. This means that only the changes which occurred since the last backup run are processed\&.
  40. .PP
  41. For backup (not restore) it is possible to process multiple stores in parallel\&.
  42. .PP
  43. There are options to inspect the contents of a backup directory, and to restore only individual messages/items\&.
  44. .SH "OPTIONS"
  45. .PP
  46. \fB\-\-user\fR, \fB\-u\fR \fINAME\fR
  47. .RS 4
  48. Backup data of the specified user\&. Multiple users may be specified\&. By default, all users are included\&. When restoring, restore into the store of the specified user\&.
  49. .RE
  50. .PP
  51. \fB\-\-restore\fR
  52. .RS 4
  53. Restore the contents of the specified backup directory\&. The respective store is determined automatically, but may also be specified explicitly, for example using
  54. \fI\-\-user\fR\&.
  55. .RE
  56. .PP
  57. \fB\-\-stats\fR
  58. .RS 4
  59. List folders contained in specified backup directory in CSV format\&. Folder sizes are shown for each folder\&.
  60. .RE
  61. .PP
  62. \fB\-\-index\fR
  63. .RS 4
  64. List messages/items contained in specified backup directory in CSV format\&. Sourcekeys, respective folders, last modified dates and subjects are shown for each message/item\&.
  65. .RE
  66. .PP
  67. \fB\-\-sourcekey\fR \fISOURCEKEY\fR
  68. .RS 4
  69. Restore message/item with specified sourcekey (as shown using
  70. \fI\-\-index\fR)\&. Must be combined with
  71. \fI\-\-restore\fR\&. Multiple sourcekeys may be specified\&.
  72. .RE
  73. .PP
  74. \fB\-\-restore\-root\fR \fIPATH\fR
  75. .RS 4
  76. When restoring, place data under folder with specific path (or name), for example \*(Aqsome_folder\*(Aq or \*(AqInbox/some_subfolder\*(Aq\&.
  77. .RE
  78. .PP
  79. \fB\-\-folder\fR, \fB\-f\fR \fIPATH\fR
  80. .RS 4
  81. Backup/restore only folder(s) with specified path\&. Multiple folders may be specified\&. Subfolders may be included using
  82. \fI\-\-recursive\fR\&.
  83. .RE
  84. .PP
  85. \fB\-\-recursive\fR
  86. .RS 4
  87. When specifying folders (\fI\-\-folder\fR), also include subfolders in backup/restore\&.
  88. .RE
  89. .PP
  90. \fB\-\-worker\-processes\fR, \fB\-w\fR \fIN\fR
  91. .RS 4
  92. When backing up data from multiple stores, process these stores in parallel, using the specified number of workers\&.
  93. .RE
  94. .PP
  95. \fB\-\-period\-begin\fR, \fB\-b\fR \fIDATE\fR
  96. .RS 4
  97. Backup/restore data which was last modified on or after the specified date (YYYY\-MM\-DD)\&.
  98. .RE
  99. .PP
  100. \fB\-\-period\-end\fR, \fB\-e\fR \fIDATE\fR
  101. .RS 4
  102. Backup/restore data which was last modified before the specified date (YYYY\-MM\-DD)\&.
  103. .RE
  104. .PP
  105. \fB\-\-skip\-junk\fR
  106. .RS 4
  107. Do not backup/restore junk folder\&.
  108. .RE
  109. .PP
  110. \fB\-\-skip\-deleted\fR
  111. .RS 4
  112. Do not backup/restore deleted mail folder\&.
  113. .RE
  114. .PP
  115. \fB\-\-skip\-public\fR
  116. .RS 4
  117. Do not backup/restore public store\&.
  118. .RE
  119. .PP
  120. \fB\-\-skip\-attachments\fR
  121. .RS 4
  122. Do not backup/restore attachments\&.
  123. .RE
  124. .PP
  125. \fB\-\-skip\-meta\fR
  126. .RS 4
  127. Do not backup/restore meta data, such as settings, permissions and rules\&.
  128. .RE
  129. .PP
  130. \fB\-\-only\-meta\fR
  131. .RS 4
  132. Only backup/restore meta data, such as settings, permissions and rules\&.
  133. .RE
  134. .PP
  135. \fB\-\-deletes\fR \fIYESNO\fR
  136. .RS 4
  137. Backup/restore/show deleted items/folders\&. The default when backing up is to maintain data which has been soft\- or hard\-deleted\&. The default when restoring is to not restore such data\&. The default when viewing the contents of a backup directory is to show such data\&.
  138. .RE
  139. .PP
  140. \fB\-\-purge\fR \fIN\fR
  141. .RS 4
  142. Permanently delete data from backup directory which has been marked as deleted more than the specified number of days ago\&.
  143. .RE
  144. .PP
  145. \fB\-\-output\-dir\fR, \fB\-O\fR \fIPATH\fR
  146. .RS 4
  147. Create/update backup directories in the specified directory, instead of the local directory\&.
  148. .RE
  149. .PP
  150. \fB\-\-company\fR, \fB\-C\fR \fINAME\fR
  151. .RS 4
  152. Backup users and public store for specified company\&.
  153. .RE
  154. .PP
  155. \fB\-\-store\fR, \fB\-S\fR \fIGUID\fR
  156. .RS 4
  157. Backup specified store\&. Instead of a GUID, \*(Aqpublic\*(Aq may also be specified, to denote the public store\&.
  158. .RE
  159. .PP
  160. \fB\-\-log\-level\fR, \fB\-l\fR \fINAME\fR
  161. .RS 4
  162. Specify log\-level, for example, \*(Aqerror\*(Aq, \*(Aqwarning\*(Aq \*(Aqinfo\*(Aq or \*(Aqdebug\*(Aq\&.
  163. .RE
  164. .PP
  165. \fB\-\-config\fR, \fB\-c\fR \fIFILE\fR
  166. .RS 4
  167. Load configuration settings from specified file\&.
  168. .RE
  169. .PP
  170. \fB\-\-server\-socket\fR, \fB\-s\fR \fISOCKET\fR
  171. .RS 4
  172. Connect to storage server through specified socket\&.
  173. .RE
  174. .PP
  175. \fB\-\-auth\-user\fR, \fB\-U\fR \fINAME\fR
  176. .RS 4
  177. Authenticate as specified user\&.
  178. .RE
  179. .PP
  180. \fB\-\-auth\-pass\fR, \fB\-P\fR \fIPASS\fR
  181. .RS 4
  182. Authenticate with specified password\&.
  183. .RE
  184. .PP
  185. \fB\-\-ssl\-key\fR, \fB\-k\fR \fIFILE\fR
  186. .RS 4
  187. Specify SSL key file\&.
  188. .RE
  189. .PP
  190. \fB\-\-ssl\-pass\fR, \fB\-p\fR \fIPASSWORD\fR
  191. .RS 4
  192. Specify SSL key password\&.
  193. .RE
  194. .SH "EXAMPLES"
  195. .PP
  196. Backup user \*(Aqhenk\*(Aq, creating/updating a backup directory with the same name:
  197. .PP
  198. \fBkopano\-backup \-u henk\fR
  199. .PP
  200. Restore the same user (possibly on another server):
  201. .PP
  202. \fBkopano\-backup \-\-restore henk\fR
  203. .PP
  204. Backup users \*(Aqhenk\*(Aq and \*(Aqfred\*(Aq, in parallel, in a specified directory:
  205. .PP
  206. \fBkopano\-backup \-u henk \-u fred \-w 2 \-O backups\fR
  207. .PP
  208. Search for message with specific subject:
  209. .PP
  210. \fBkopano\-backup \-\-index backups/henk | grep subject\fR
  211. .PP
  212. Restore single message:
  213. .PP
  214. \fBkopano\-backup \-\-restore backup/henk \-\-sourcekey 72EE69D0A283408E89BFC35AD251E9B3830000000000\fR
  215. .PP
  216. Restore single message:
  217. .PP
  218. \fBkopano\-backup \-\-restore backup/henk \-\-sourcekey 72EE69D0A283408E89BFC35AD251E9B3830000000000\fR
  219. .PP
  220. Backup calendars of all users:
  221. .PP
  222. \fBkopano\-backup \-f Calendar \-O calendars\fR
  223. .PP
  224. Recursively restore inbox of \*(Aqfred\*(Aq into store of \*(Aqhenk\*(Aq, in certain subfolder:
  225. .PP
  226. \fBkopano\-backup \-\-restore fred \-f Inbox \-u henk \-\-recursive \-\-restore\-root from_fred\fR
  227. .PP
  228. Restore everything last modified in 2014:
  229. .PP
  230. \fBkopano\-backup \-\-restore fred \-b 2014\-01\-01 \-e 2015\-01\-01\fR
  231. .SH "AUTHOR"
  232. .PP
  233. Written by Kopano\&.