syncthing.1 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268
  1. .\" Man page generated from reStructuredText.
  2. .
  3. .TH "SYNCTHING" "1" "June 14, 2015" "v0.11" "Syncthing"
  4. .SH NAME
  5. syncthing \- Syncthing
  6. .
  7. .nr rst2man-indent-level 0
  8. .
  9. .de1 rstReportMargin
  10. \\$1 \\n[an-margin]
  11. level \\n[rst2man-indent-level]
  12. level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
  13. -
  14. \\n[rst2man-indent0]
  15. \\n[rst2man-indent1]
  16. \\n[rst2man-indent2]
  17. ..
  18. .de1 INDENT
  19. .\" .rstReportMargin pre:
  20. . RS \\$1
  21. . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin]
  22. . nr rst2man-indent-level +1
  23. .\" .rstReportMargin post:
  24. ..
  25. .de UNINDENT
  26. . RE
  27. .\" indent \\n[an-margin]
  28. .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]]
  29. .nr rst2man-indent-level -1
  30. .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
  31. .in \\n[rst2man-indent\\n[rst2man-indent-level]]u
  32. ..
  33. .SH SYNOPSIS
  34. .INDENT 0.0
  35. .INDENT 3.5
  36. .sp
  37. .nf
  38. .ft C
  39. syncthing [\-audit] [\-generate=<dir>] [\-gui\-address=<address>]
  40. [\-gui\-apikey=<key>] [\-gui\-authentication=<username:password>]
  41. [\-home=<dir>] [\-logflags=<flags>] [\-no\-browser] [\-no\-restart]
  42. [\-reset] [\-upgrade] [\-upgrade\-check] [\-upgrade\-to=<url>]
  43. [\-verbose] [\-version]
  44. .ft P
  45. .fi
  46. .UNINDENT
  47. .UNINDENT
  48. .SH DESCRIPTION
  49. .sp
  50. Syncthing is an application that lets you synchronize your files across multiple
  51. devices. This means the creation, modification or deletion of files on one
  52. machine will automatically be replicated to your other devices. We believe your
  53. data is your data alone and you deserve to choose where it is stored. Therefore
  54. Syncthing does not upload your data to the cloud but exchanges your data across
  55. your machines as soon as they are online at the same time.
  56. .SH OPTIONS
  57. .INDENT 0.0
  58. .TP
  59. .B \-audit
  60. Write events to audit file.
  61. .UNINDENT
  62. .INDENT 0.0
  63. .TP
  64. .B \-generate=<dir>
  65. Generate key and config in specified dir, then exit.
  66. .UNINDENT
  67. .INDENT 0.0
  68. .TP
  69. .B \-gui\-address=<address>
  70. Override GUI address.
  71. .UNINDENT
  72. .INDENT 0.0
  73. .TP
  74. .B \-gui\-apikey=<key>
  75. Override GUI API key.
  76. .UNINDENT
  77. .INDENT 0.0
  78. .TP
  79. .B \-gui\-authentication=<username:password>
  80. Override GUI authentication; username:password.
  81. .UNINDENT
  82. .INDENT 0.0
  83. .TP
  84. .B \-home=<dir>
  85. Set configuration directory. The default configuration directory is:
  86. \fB$HOME/.config/syncthing\fP\&.
  87. .UNINDENT
  88. .INDENT 0.0
  89. .TP
  90. .B \-logflags=<flags>
  91. Select information in log line prefix, default 2. The \fB\-logflags\fP value is
  92. a sum of the following:
  93. .INDENT 7.0
  94. .IP \(bu 2
  95. 1: Date
  96. .IP \(bu 2
  97. 2: Time
  98. .IP \(bu 2
  99. 4: Microsecond time
  100. .IP \(bu 2
  101. 8: Long filename
  102. .IP \(bu 2
  103. 16: Short filename
  104. .UNINDENT
  105. .sp
  106. To prefix each log line with date and time, set \fB\-logflags=3\fP (1 + 2 from
  107. above). The value 0 is used to disable all of the above. The default is to
  108. show time only (2).
  109. .UNINDENT
  110. .INDENT 0.0
  111. .TP
  112. .B \-no\-browser
  113. Do not start a browser.
  114. .UNINDENT
  115. .INDENT 0.0
  116. .TP
  117. .B \-no\-restart
  118. Do not restart; just exit.
  119. .UNINDENT
  120. .INDENT 0.0
  121. .TP
  122. .B \-reset
  123. Reset the database.
  124. .UNINDENT
  125. .INDENT 0.0
  126. .TP
  127. .B \-upgrade
  128. Perform upgrade.
  129. .UNINDENT
  130. .INDENT 0.0
  131. .TP
  132. .B \-upgrade\-check
  133. Check for available upgrade.
  134. .UNINDENT
  135. .INDENT 0.0
  136. .TP
  137. .B \-upgrade\-to=<url>
  138. Force upgrade directly from specified URL.
  139. .UNINDENT
  140. .INDENT 0.0
  141. .TP
  142. .B \-verbose
  143. Print verbose log output.
  144. .UNINDENT
  145. .INDENT 0.0
  146. .TP
  147. .B \-version
  148. Show version.
  149. .UNINDENT
  150. .SH EXIT CODES
  151. .INDENT 0.0
  152. .TP
  153. .B 0
  154. Success / Shutdown
  155. .TP
  156. .B 1
  157. Error
  158. .TP
  159. .B 2
  160. Upgrade not available
  161. .TP
  162. .B 3
  163. Restarting
  164. .TP
  165. .B 5
  166. Upgrading
  167. .UNINDENT
  168. .sp
  169. Some of these exit codes are only returned when running without a monitor
  170. process (with environment variable \fBSTNORESTART\fP set). Exit codes over 125 are
  171. usually returned by the shell/binary loader/default signal handler. Exit codes
  172. over 128+N on Unix usually represent the signal which caused the process to
  173. exit. For example, \fB128 + 9 (SIGKILL) = 137\fP\&.
  174. .SH DEVELOPMENT SETTINGS
  175. .sp
  176. The following environment variables modify Syncthing\(aqs behavior in ways that
  177. are mostly useful for developers. Use with care.
  178. .INDENT 0.0
  179. .TP
  180. .B STGUIASSETS
  181. Directory to load GUI assets from. Overrides compiled in assets.
  182. .TP
  183. .B STTRACE
  184. A comma separated string of facilities to trace. The valid facility strings
  185. are:
  186. .INDENT 7.0
  187. .TP
  188. .B beacon
  189. the beacon package
  190. .TP
  191. .B discover
  192. the discover package
  193. .TP
  194. .B events
  195. the events package
  196. .TP
  197. .B files
  198. the files package
  199. .TP
  200. .B http
  201. the main package; HTTP requests
  202. .TP
  203. .B locks
  204. the sync package; trace long held locks
  205. .TP
  206. .B net
  207. the main package; connections & network messages
  208. .TP
  209. .B model
  210. the model package
  211. .TP
  212. .B scanner
  213. the scanner package
  214. .TP
  215. .B stats
  216. the stats package
  217. .TP
  218. .B upnp
  219. the upnp package
  220. .TP
  221. .B xdr
  222. the xdr package
  223. .TP
  224. .B all
  225. all of the above
  226. .UNINDENT
  227. .TP
  228. .B STPROFILER
  229. Set to a listen address such as "127.0.0.1:9090" to start the profiler with
  230. HTTP access.
  231. .TP
  232. .B STCPUPROFILE
  233. Write a CPU profile to cpu\-$pid.pprof on exit.
  234. .TP
  235. .B STHEAPPROFILE
  236. Write heap profiles to heap\-$pid\-$timestamp.pprof each time heap usage
  237. increases.
  238. .TP
  239. .B STBLOCKPROFILE
  240. Write block profiles to \fBblock\-$pid\-$timestamp.pprof\fP every 20 seconds.
  241. .TP
  242. .B STPERFSTATS
  243. Write running performance statistics to perf\-$pid.csv. Not supported on
  244. Windows.
  245. .TP
  246. .B STNOUPGRADE
  247. Disable automatic upgrades.
  248. .TP
  249. .B GOMAXPROCS
  250. Set the maximum number of CPU cores to use. Defaults to all available CPU cores.
  251. .TP
  252. .B GOGC
  253. Percentage of heap growth at which to trigger GC. Default is 100. Lower
  254. numbers keep peak memory usage down, at the price of CPU usage
  255. (ie. performance).
  256. .UNINDENT
  257. .SH SEE ALSO
  258. .sp
  259. \fIsyncthing\-config(5)\fP, \fIsyncthing\-stignore(5)\fP,
  260. \fIsyncthing\-device\-ids(7)\fP, \fIsyncthing\-security(7)\fP,
  261. \fIsyncthing\-networking(7)\fP, \fIsyncthing\-versioning(7)\fP,
  262. \fIsyncthing\-faq(7)\fP
  263. .SH AUTHOR
  264. The Syncthing Authors
  265. .SH COPYRIGHT
  266. 2015, The Syncthing Authors
  267. .\" Generated by docutils manpage writer.
  268. .