syncthing.1 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279
  1. .\" Man page generated from reStructuredText.
  2. .
  3. .TH "SYNCTHING" "1" "November 04, 2015" "v0.12" "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>] [\-logfile=<filename>] [\-logflags=<flags>] [\-no\-browser]
  42. [\-no\-console] [\-no\-restart] [\-reset] [\-upgrade] [\-upgrade\-check]
  43. [\-upgrade\-to=<url>] [\-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 \-logfile=<filename>
  91. Set destination filename for logging (use \fB"\-"\fP for stdout, which is the default option).
  92. .UNINDENT
  93. .INDENT 0.0
  94. .TP
  95. .B \-logflags=<flags>
  96. Select information in log line prefix, default 2. The \fB\-logflags\fP value is
  97. a sum of the following:
  98. .INDENT 7.0
  99. .IP \(bu 2
  100. 1: Date
  101. .IP \(bu 2
  102. 2: Time
  103. .IP \(bu 2
  104. 4: Microsecond time
  105. .IP \(bu 2
  106. 8: Long filename
  107. .IP \(bu 2
  108. 16: Short filename
  109. .UNINDENT
  110. .sp
  111. To prefix each log line with date and time, set \fB\-logflags=3\fP (1 + 2 from
  112. above). The value 0 is used to disable all of the above. The default is to
  113. show time only (2).
  114. .UNINDENT
  115. .INDENT 0.0
  116. .TP
  117. .B \-no\-browser
  118. Do not start a browser.
  119. .UNINDENT
  120. .INDENT 0.0
  121. .TP
  122. .B \-no\-console
  123. Hide the console window. (On Windows only)
  124. .UNINDENT
  125. .INDENT 0.0
  126. .TP
  127. .B \-no\-restart
  128. Do not restart; just exit.
  129. .UNINDENT
  130. .INDENT 0.0
  131. .TP
  132. .B \-reset
  133. Reset the database.
  134. .UNINDENT
  135. .INDENT 0.0
  136. .TP
  137. .B \-upgrade
  138. Perform upgrade.
  139. .UNINDENT
  140. .INDENT 0.0
  141. .TP
  142. .B \-upgrade\-check
  143. Check for available upgrade.
  144. .UNINDENT
  145. .INDENT 0.0
  146. .TP
  147. .B \-upgrade\-to=<url>
  148. Force upgrade directly from specified URL.
  149. .UNINDENT
  150. .INDENT 0.0
  151. .TP
  152. .B \-verbose
  153. Print verbose log output.
  154. .UNINDENT
  155. .INDENT 0.0
  156. .TP
  157. .B \-version
  158. Show version.
  159. .UNINDENT
  160. .SH EXIT CODES
  161. .INDENT 0.0
  162. .TP
  163. .B 0
  164. Success / Shutdown
  165. .TP
  166. .B 1
  167. Error
  168. .TP
  169. .B 2
  170. Upgrade not available
  171. .TP
  172. .B 3
  173. Restarting
  174. .TP
  175. .B 4
  176. Upgrading
  177. .UNINDENT
  178. .sp
  179. Some of these exit codes are only returned when running without a monitor
  180. process (with environment variable \fBSTNORESTART\fP set). Exit codes over 125 are
  181. usually returned by the shell/binary loader/default signal handler. Exit codes
  182. over 128+N on Unix usually represent the signal which caused the process to
  183. exit. For example, \fB128 + 9 (SIGKILL) = 137\fP\&.
  184. .SH DEVELOPMENT SETTINGS
  185. .sp
  186. The following environment variables modify Syncthing\(aqs behavior in ways that
  187. are mostly useful for developers. Use with care.
  188. .INDENT 0.0
  189. .TP
  190. .B STGUIASSETS
  191. Directory to load GUI assets from. Overrides compiled in assets.
  192. .TP
  193. .B STTRACE
  194. A comma separated string of facilities to trace. The valid facility strings
  195. are:
  196. .INDENT 7.0
  197. .TP
  198. .B beacon
  199. the beacon package
  200. .TP
  201. .B discover
  202. the discover package
  203. .TP
  204. .B events
  205. the events package
  206. .TP
  207. .B files
  208. the files package
  209. .TP
  210. .B http
  211. the main package; HTTP requests
  212. .TP
  213. .B locks
  214. the sync package; trace long held locks
  215. .TP
  216. .B net
  217. the main package; connections & network messages
  218. .TP
  219. .B model
  220. the model package
  221. .TP
  222. .B scanner
  223. the scanner package
  224. .TP
  225. .B stats
  226. the stats package
  227. .TP
  228. .B upnp
  229. the upnp package
  230. .TP
  231. .B xdr
  232. the xdr package
  233. .TP
  234. .B all
  235. all of the above
  236. .UNINDENT
  237. .TP
  238. .B STPROFILER
  239. Set to a listen address such as "127.0.0.1:9090" to start the profiler with
  240. HTTP access.
  241. .TP
  242. .B STCPUPROFILE
  243. Write a CPU profile to cpu\-$pid.pprof on exit.
  244. .TP
  245. .B STHEAPPROFILE
  246. Write heap profiles to \fBheap\-$pid\-$timestamp.pprof\fP each time heap usage
  247. increases.
  248. .TP
  249. .B STBLOCKPROFILE
  250. Write block profiles to \fBblock\-$pid\-$timestamp.pprof\fP every 20 seconds.
  251. .TP
  252. .B STPERFSTATS
  253. Write running performance statistics to \fBperf\-$pid.csv\fP\&. Not supported on
  254. Windows.
  255. .TP
  256. .B STNOUPGRADE
  257. Disable automatic upgrades.
  258. .TP
  259. .B GOMAXPROCS
  260. Set the maximum number of CPU cores to use. Defaults to all available CPU
  261. cores.
  262. .TP
  263. .B GOGC
  264. Percentage of heap growth at which to trigger GC. Default is 100. Lower
  265. numbers keep peak memory usage down, at the price of CPU usage
  266. (ie. performance).
  267. .UNINDENT
  268. .SH SEE ALSO
  269. .sp
  270. \fIsyncthing\-config(5)\fP, \fIsyncthing\-stignore(5)\fP,
  271. \fIsyncthing\-device\-ids(7)\fP, \fIsyncthing\-security(7)\fP,
  272. \fIsyncthing\-networking(7)\fP, \fIsyncthing\-versioning(7)\fP,
  273. \fIsyncthing\-faq(7)\fP
  274. .SH AUTHOR
  275. The Syncthing Authors
  276. .SH COPYRIGHT
  277. 2015, The Syncthing Authors
  278. .\" Generated by docutils manpage writer.
  279. .