syncthing.1 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285
  1. .\" Man page generated from reStructuredText.
  2. .
  3. .TH "SYNCTHING" "1" "December 11, 2016" "v0.14" "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] [\-browser\-only] [\-generate=<dir>] [\-gui\-address=<address>] [\-gui\-apikey=<key>]
  40. [\-home=<dir>] [\-logfile=<filename>] [\-logflags=<flags>] [\-no\-browser]
  41. [\-no\-console] [\-no\-restart] [\-paths] [\-paused] [\-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 \-home=<dir>
  74. Set configuration directory. The default configuration directory is:
  75. \fB$HOME/.config/syncthing\fP\&.
  76. .UNINDENT
  77. .INDENT 0.0
  78. .TP
  79. .B \-logfile=<filename>
  80. Set destination filename for logging (use \fB"\-"\fP for stdout, which is the default option).
  81. .UNINDENT
  82. .INDENT 0.0
  83. .TP
  84. .B \-logflags=<flags>
  85. Select information in log line prefix, default 2. The \fB\-logflags\fP value is
  86. a sum of the following:
  87. .INDENT 7.0
  88. .IP \(bu 2
  89. 1: Date
  90. .IP \(bu 2
  91. 2: Time
  92. .IP \(bu 2
  93. 4: Microsecond time
  94. .IP \(bu 2
  95. 8: Long filename
  96. .IP \(bu 2
  97. 16: Short filename
  98. .UNINDENT
  99. .sp
  100. To prefix each log line with date and time, set \fB\-logflags=3\fP (1 + 2 from
  101. above). The value 0 is used to disable all of the above. The default is to
  102. show time only (2).
  103. .UNINDENT
  104. .INDENT 0.0
  105. .TP
  106. .B \-no\-browser
  107. Do not start a browser.
  108. .UNINDENT
  109. .INDENT 0.0
  110. .TP
  111. .B \-no\-console
  112. Hide the console window. (On Windows only)
  113. .UNINDENT
  114. .INDENT 0.0
  115. .TP
  116. .B \-no\-restart
  117. Do not restart; just exit.
  118. .UNINDENT
  119. .INDENT 0.0
  120. .TP
  121. .B \-paths
  122. Print the paths used for configuration, keys, database, GUI overrides, default sync folder and the log file.
  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 DEPRECATED OPTIONS
  155. .INDENT 0.0
  156. .TP
  157. .B \-gui\-apikey=<key>
  158. Override GUI API key (deprecated as of v0.13, to be removed in the future \- do not use).
  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. If you start syncthing from within service managers like systemd or supervisor
  189. path expansion may not be supported.
  190. .INDENT 0.0
  191. .TP
  192. .B STNODEFAULTFOLDER
  193. Don\(aqt create a default folder when starting for the first time. This
  194. variable will be ignored anytime after the first run.
  195. .TP
  196. .B STGUIASSETS
  197. Directory to load GUI assets from. Overrides compiled in assets.
  198. .TP
  199. .B STTRACE
  200. A comma separated string of facilities to trace. The valid facility strings
  201. are:
  202. .INDENT 7.0
  203. .TP
  204. .B beacon
  205. the beacon package
  206. .TP
  207. .B discover
  208. the discover package
  209. .TP
  210. .B events
  211. the events package
  212. .TP
  213. .B files
  214. the files package
  215. .TP
  216. .B http
  217. the main package; HTTP requests
  218. .TP
  219. .B locks
  220. the sync package; trace long held locks
  221. .TP
  222. .B net
  223. the main package; connections & network messages
  224. .TP
  225. .B model
  226. the model package
  227. .TP
  228. .B scanner
  229. the scanner package
  230. .TP
  231. .B stats
  232. the stats package
  233. .TP
  234. .B upnp
  235. the upnp package
  236. .TP
  237. .B xdr
  238. the xdr package
  239. .TP
  240. .B all
  241. all of the above
  242. .UNINDENT
  243. .TP
  244. .B STPROFILER
  245. Set to a listen address such as "127.0.0.1:9090" to start the profiler with
  246. HTTP access.
  247. .TP
  248. .B STCPUPROFILE
  249. Write a CPU profile to cpu\-$pid.pprof on exit.
  250. .TP
  251. .B STHEAPPROFILE
  252. Write heap profiles to \fBheap\-$pid\-$timestamp.pprof\fP each time heap usage
  253. increases.
  254. .TP
  255. .B STBLOCKPROFILE
  256. Write block profiles to \fBblock\-$pid\-$timestamp.pprof\fP every 20 seconds.
  257. .TP
  258. .B STPERFSTATS
  259. Write running performance statistics to \fBperf\-$pid.csv\fP\&. Not supported on
  260. Windows.
  261. .TP
  262. .B STNOUPGRADE
  263. Disable automatic upgrades.
  264. .TP
  265. .B GOMAXPROCS
  266. Set the maximum number of CPU cores to use. Defaults to all available CPU
  267. cores.
  268. .TP
  269. .B GOGC
  270. Percentage of heap growth at which to trigger GC. Default is 100. Lower
  271. numbers keep peak memory usage down, at the price of CPU usage
  272. (ie. performance).
  273. .UNINDENT
  274. .SH SEE ALSO
  275. .sp
  276. \fIsyncthing\-config(5)\fP, \fIsyncthing\-stignore(5)\fP,
  277. \fIsyncthing\-device\-ids(7)\fP, \fIsyncthing\-security(7)\fP,
  278. \fIsyncthing\-networking(7)\fP, \fIsyncthing\-versioning(7)\fP,
  279. \fIsyncthing\-faq(7)\fP
  280. .SH AUTHOR
  281. The Syncthing Authors
  282. .SH COPYRIGHT
  283. 2015, The Syncthing Authors
  284. .\" Generated by docutils manpage writer.
  285. .