syncthing.1 5.7 KB

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