syncthing.1 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284
  1. .\" Man page generated from reStructuredText.
  2. .
  3. .TH "SYNCTHING" "1" "April 08, 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] [\-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 \-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 \-paths
  127. Print the paths used for configuration, keys, database, GUI overrides, default sync folder and the log file.
  128. .UNINDENT
  129. .INDENT 0.0
  130. .TP
  131. .B \-reset
  132. Reset the database.
  133. .UNINDENT
  134. .INDENT 0.0
  135. .TP
  136. .B \-upgrade
  137. Perform upgrade.
  138. .UNINDENT
  139. .INDENT 0.0
  140. .TP
  141. .B \-upgrade\-check
  142. Check for available upgrade.
  143. .UNINDENT
  144. .INDENT 0.0
  145. .TP
  146. .B \-upgrade\-to=<url>
  147. Force upgrade directly from specified URL.
  148. .UNINDENT
  149. .INDENT 0.0
  150. .TP
  151. .B \-verbose
  152. Print verbose log output.
  153. .UNINDENT
  154. .INDENT 0.0
  155. .TP
  156. .B \-version
  157. Show version.
  158. .UNINDENT
  159. .SH EXIT CODES
  160. .INDENT 0.0
  161. .TP
  162. .B 0
  163. Success / Shutdown
  164. .TP
  165. .B 1
  166. Error
  167. .TP
  168. .B 2
  169. Upgrade not available
  170. .TP
  171. .B 3
  172. Restarting
  173. .TP
  174. .B 4
  175. Upgrading
  176. .UNINDENT
  177. .sp
  178. Some of these exit codes are only returned when running without a monitor
  179. process (with environment variable \fBSTNORESTART\fP set). Exit codes over 125 are
  180. usually returned by the shell/binary loader/default signal handler. Exit codes
  181. over 128+N on Unix usually represent the signal which caused the process to
  182. exit. For example, \fB128 + 9 (SIGKILL) = 137\fP\&.
  183. .SH DEVELOPMENT SETTINGS
  184. .sp
  185. The following environment variables modify Syncthing\(aqs behavior in ways that
  186. are mostly useful for developers. Use with care.
  187. If you start syncthing from within service managers like systemd or supervisor
  188. path expansion may not be supported.
  189. .INDENT 0.0
  190. .TP
  191. .B STNODEFAULTFOLDER
  192. Don\(aqt create a default folder when starting for the first time. This
  193. variable will be ignored anytime after the first run.
  194. .TP
  195. .B STGUIASSETS
  196. Directory to load GUI assets from. Overrides compiled in assets.
  197. .TP
  198. .B STTRACE
  199. A comma separated string of facilities to trace. The valid facility strings
  200. are:
  201. .INDENT 7.0
  202. .TP
  203. .B beacon
  204. the beacon package
  205. .TP
  206. .B discover
  207. the discover package
  208. .TP
  209. .B events
  210. the events package
  211. .TP
  212. .B files
  213. the files package
  214. .TP
  215. .B http
  216. the main package; HTTP requests
  217. .TP
  218. .B locks
  219. the sync package; trace long held locks
  220. .TP
  221. .B net
  222. the main package; connections & network messages
  223. .TP
  224. .B model
  225. the model package
  226. .TP
  227. .B scanner
  228. the scanner package
  229. .TP
  230. .B stats
  231. the stats package
  232. .TP
  233. .B upnp
  234. the upnp package
  235. .TP
  236. .B xdr
  237. the xdr package
  238. .TP
  239. .B all
  240. all of the above
  241. .UNINDENT
  242. .TP
  243. .B STPROFILER
  244. Set to a listen address such as "127.0.0.1:9090" to start the profiler with
  245. HTTP access.
  246. .TP
  247. .B STCPUPROFILE
  248. Write a CPU profile to cpu\-$pid.pprof on exit.
  249. .TP
  250. .B STHEAPPROFILE
  251. Write heap profiles to \fBheap\-$pid\-$timestamp.pprof\fP each time heap usage
  252. increases.
  253. .TP
  254. .B STBLOCKPROFILE
  255. Write block profiles to \fBblock\-$pid\-$timestamp.pprof\fP every 20 seconds.
  256. .TP
  257. .B STPERFSTATS
  258. Write running performance statistics to \fBperf\-$pid.csv\fP\&. Not supported on
  259. Windows.
  260. .TP
  261. .B STNOUPGRADE
  262. Disable automatic upgrades.
  263. .TP
  264. .B GOMAXPROCS
  265. Set the maximum number of CPU cores to use. Defaults to all available CPU
  266. cores.
  267. .TP
  268. .B GOGC
  269. Percentage of heap growth at which to trigger GC. Default is 100. Lower
  270. numbers keep peak memory usage down, at the price of CPU usage
  271. (ie. performance).
  272. .UNINDENT
  273. .SH SEE ALSO
  274. .sp
  275. \fIsyncthing\-config(5)\fP, \fIsyncthing\-stignore(5)\fP,
  276. \fIsyncthing\-device\-ids(7)\fP, \fIsyncthing\-security(7)\fP,
  277. \fIsyncthing\-networking(7)\fP, \fIsyncthing\-versioning(7)\fP,
  278. \fIsyncthing\-faq(7)\fP
  279. .SH AUTHOR
  280. The Syncthing Authors
  281. .SH COPYRIGHT
  282. 2015, The Syncthing Authors
  283. .\" Generated by docutils manpage writer.
  284. .