syncthing.1 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354
  1. .\" Man page generated from reStructuredText.
  2. .
  3. .TH "SYNCTHING" "1" "March 13, 2017" "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] [\-auditfile=<file|\-|\-\->] [\-browser\-only] [\-generate=<dir>]
  40. [\-gui\-address=<address>] [\-gui\-apikey=<key>] [\-home=<dir>] [\-logfile=<filename>]
  41. [\-logflags=<flags>] [\-no\-browser] [\-no\-console] [\-no\-restart] [\-paths] [\-paused]
  42. [\-reset\-database] [\-reset\-deltas] [\-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 timestamped file \fBaudit\-YYYYMMDD\-HHMMSS.log\fP\&.
  61. .UNINDENT
  62. .INDENT 0.0
  63. .TP
  64. .B \-auditfile=<file|\-|\-\->
  65. Use specified file or stream (\fB"\-"\fP for stdout, \fB"\-\-"\fP for stderr) for audit events, rather than the timestamped default file name.
  66. .UNINDENT
  67. .INDENT 0.0
  68. .TP
  69. .B \-generate=<dir>
  70. Generate key and config in specified dir, then exit.
  71. .UNINDENT
  72. .INDENT 0.0
  73. .TP
  74. .B \-gui\-address=<address>
  75. Override GUI listen address.
  76. .UNINDENT
  77. .INDENT 0.0
  78. .TP
  79. .B \-home=<dir>
  80. Set configuration directory. The default configuration directory is
  81. \fB$HOME/.config/syncthing\fP (Unix\-like), \fB$HOME/Library/Application Support/Syncthing\fP (Mac) and \fB%LOCALAPPDATA%\eSyncthing\fP (Windows).
  82. .UNINDENT
  83. .INDENT 0.0
  84. .TP
  85. .B \-logfile=<filename>
  86. Set destination filename for logging (use \fB"\-"\fP for stdout, which is the default option).
  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\-console
  118. Hide the console window. (On Windows only)
  119. .UNINDENT
  120. .INDENT 0.0
  121. .TP
  122. .B \-no\-restart
  123. Disable the Syncthing monitor process which handles restarts for some configuration changes, upgrades, crashes and also log file writing (stdout is still written).
  124. .UNINDENT
  125. .INDENT 0.0
  126. .TP
  127. .B \-paths
  128. Print the paths used for configuration, keys, database, GUI overrides, default sync folder and the log file.
  129. .UNINDENT
  130. .INDENT 0.0
  131. .TP
  132. .B \-reset\-database
  133. Reset the database, forcing a full rescan and resync.
  134. .UNINDENT
  135. .INDENT 0.0
  136. .TP
  137. .B \-reset\-deltas
  138. Reset delta index IDs, forcing a full index exchange.
  139. .UNINDENT
  140. .INDENT 0.0
  141. .TP
  142. .B \-upgrade
  143. Perform upgrade.
  144. .UNINDENT
  145. .INDENT 0.0
  146. .TP
  147. .B \-upgrade\-check
  148. Check for available upgrade.
  149. .UNINDENT
  150. .INDENT 0.0
  151. .TP
  152. .B \-upgrade\-to=<url>
  153. Force upgrade directly from specified URL.
  154. .UNINDENT
  155. .INDENT 0.0
  156. .TP
  157. .B \-verbose
  158. Print verbose log output.
  159. .UNINDENT
  160. .INDENT 0.0
  161. .TP
  162. .B \-version
  163. Show version.
  164. .UNINDENT
  165. .SH DEPRECATED OPTIONS
  166. .INDENT 0.0
  167. .TP
  168. .B \-gui\-apikey=<key>
  169. Override GUI API key (deprecated as of v0.13, to be removed in the future \- do not use).
  170. .UNINDENT
  171. .SH EXIT CODES
  172. .INDENT 0.0
  173. .TP
  174. .B 0
  175. Success / Shutdown
  176. .TP
  177. .B 1
  178. Error
  179. .TP
  180. .B 2
  181. Upgrade not available
  182. .TP
  183. .B 3
  184. Restarting
  185. .TP
  186. .B 4
  187. Upgrading
  188. .UNINDENT
  189. .sp
  190. Some of these exit codes are only returned when running without a monitor
  191. process (with environment variable \fBSTNORESTART\fP set). Exit codes over 125 are
  192. usually returned by the shell/binary loader/default signal handler. Exit codes
  193. over 128+N on Unix usually represent the signal which caused the process to
  194. exit. For example, \fB128 + 9 (SIGKILL) = 137\fP\&.
  195. .SH DEVELOPMENT SETTINGS
  196. .sp
  197. The following environment variables modify Syncthing\(aqs behavior in ways that
  198. are mostly useful for developers. Use with care.
  199. If you start Syncthing from within service managers like systemd or supervisor,
  200. path expansion may not be supported.
  201. .INDENT 0.0
  202. .TP
  203. .B STNODEFAULTFOLDER
  204. Don\(aqt create a default folder when starting for the first time. This
  205. variable will be ignored anytime after the first run.
  206. .TP
  207. .B STGUIASSETS
  208. Directory to load GUI assets from. Overrides compiled in assets.
  209. .TP
  210. .B STTRACE
  211. Used to increase the debugging verbosity in specific or all facilities, generally mapping to a Go package. Enabling any of these also enables microsecond timestamps, file names plus line numbers. Enter a comma\-separated string of facilities to trace. \fBsyncthing \-help\fP always outputs an up\-to\-date list. The valid facility strings
  212. are:
  213. .INDENT 7.0
  214. .TP
  215. .B Main and operational facilities:
  216. .INDENT 7.0
  217. .TP
  218. .B main
  219. Main package.
  220. .TP
  221. .B model
  222. The root hub; the largest chunk of the system. File pulling, index transmission and requests for chunks.
  223. .TP
  224. .B config
  225. Configuration loading and saving.
  226. .TP
  227. .B db
  228. The database layer.
  229. .TP
  230. .B scanner
  231. File change detection and hashing.
  232. .TP
  233. .B versioner
  234. File versioning.
  235. .UNINDENT
  236. .TP
  237. .B Networking facilities:
  238. .INDENT 7.0
  239. .TP
  240. .B beacon
  241. Multicast and broadcast discovery packets.
  242. .TP
  243. .B connections
  244. Connection handling.
  245. .TP
  246. .B dialer
  247. Dialing connections.
  248. .TP
  249. .B discover
  250. Remote device discovery requests, replies and registration of devices.
  251. .TP
  252. .B relay
  253. Relay interaction.
  254. .TP
  255. .B protocol
  256. The BEP protocol.
  257. .TP
  258. .B nat
  259. NAT discovery and port mapping.
  260. .TP
  261. .B pmp
  262. NAT\-PMP discovery and port mapping.
  263. .TP
  264. .B upnp
  265. UPnP discovery and port mapping.
  266. .UNINDENT
  267. .TP
  268. .B Other facilities:
  269. .INDENT 7.0
  270. .TP
  271. .B events
  272. Event generation and logging.
  273. .TP
  274. .B http
  275. REST API.
  276. .TP
  277. .B sha256
  278. SHA256 hashing package (this facility currently unused).
  279. .TP
  280. .B stats
  281. Persistent device and folder statistics.
  282. .TP
  283. .B sync
  284. Mutexes. Used for debugging race conditions and deadlocks.
  285. .TP
  286. .B upgrade
  287. Binary upgrades.
  288. .TP
  289. .B all
  290. All of the above.
  291. .UNINDENT
  292. .UNINDENT
  293. .TP
  294. .B STPROFILER
  295. Set to a listen address such as "127.0.0.1:9090" to start the profiler with
  296. HTTP access.
  297. .TP
  298. .B STCPUPROFILE
  299. Write a CPU profile to cpu\-$pid.pprof on exit.
  300. .TP
  301. .B STHEAPPROFILE
  302. Write heap profiles to \fBheap\-$pid\-$timestamp.pprof\fP each time heap usage
  303. increases.
  304. .TP
  305. .B STBLOCKPROFILE
  306. Write block profiles to \fBblock\-$pid\-$timestamp.pprof\fP every 20 seconds.
  307. .TP
  308. .B STPERFSTATS
  309. Write running performance statistics to \fBperf\-$pid.csv\fP\&. Not supported on
  310. Windows.
  311. .TP
  312. .B STDEADLOCK
  313. Used for debugging internal deadlocks. Use only under direction of a
  314. developer.
  315. .TP
  316. .B STDEADLOCKTIMEOUT
  317. Used for debugging internal deadlocks; sets debug sensitivity. Use only
  318. under direction of a developer.
  319. .TP
  320. .B STDEADLOCKTHRESHOLD
  321. Used for debugging internal deadlocks; sets debug sensitivity. Use only
  322. under direction of a developer.
  323. .TP
  324. .B STNORESTART
  325. Equivalent to the \-no\-restart argument. Disable the Syncthing monitor process which handles restarts for some configuration changes, upgrades, crashes and also log file writing (stdout is still written).
  326. .TP
  327. .B STNOUPGRADE
  328. Disable automatic upgrades.
  329. .TP
  330. .B STHASHING
  331. Specify which hashing package to use. Defaults to automatic based on
  332. performance. Specify "minio" (compatibility) or "standard" for the default Go implementation.
  333. .TP
  334. .B GOMAXPROCS
  335. Set the maximum number of CPU cores to use. Defaults to all available CPU
  336. cores.
  337. .TP
  338. .B GOGC
  339. Percentage of heap growth at which to trigger GC. Default is 100. Lower
  340. numbers keep peak memory usage down, at the price of CPU usage
  341. (i.e. performance).
  342. .UNINDENT
  343. .SH SEE ALSO
  344. .sp
  345. \fIsyncthing\-config(5)\fP, \fIsyncthing\-stignore(5)\fP,
  346. \fIsyncthing\-device\-ids(7)\fP, \fIsyncthing\-security(7)\fP,
  347. \fIsyncthing\-networking(7)\fP, \fIsyncthing\-versioning(7)\fP,
  348. \fIsyncthing\-faq(7)\fP
  349. .SH AUTHOR
  350. The Syncthing Authors
  351. .SH COPYRIGHT
  352. 2015, The Syncthing Authors
  353. .\" Generated by docutils manpage writer.
  354. .