syncthing.1 9.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377
  1. .\" Man page generated from reStructuredText.
  2. .
  3. .TH "SYNCTHING" "1" "November 18, 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] [device\-id]
  40. [\-generate=<dir>] [\-gui\-address=<address>] [\-gui\-apikey=<key>]
  41. [\-home=<dir>] [\-logfile=<filename>] [\-logflags=<flags>]
  42. [\-no\-browser] [\-no\-console] [\-no\-restart] [\-paths] [\-paused]
  43. [\-reset\-database] [\-reset\-deltas] [\-unpaused] [\-upgrade]
  44. [\-upgrade\-check] [\-upgrade\-to=<url>] [\-verbose] [\-version]
  45. .ft P
  46. .fi
  47. .UNINDENT
  48. .UNINDENT
  49. .SH DESCRIPTION
  50. .sp
  51. Syncthing is an application that lets you synchronize your files across multiple
  52. devices. This means the creation, modification or deletion of files on one
  53. machine will automatically be replicated to your other devices. We believe your
  54. data is your data alone and you deserve to choose where it is stored. Therefore
  55. Syncthing does not upload your data to the cloud but exchanges your data across
  56. your machines as soon as they are online at the same time.
  57. .SH OPTIONS
  58. .INDENT 0.0
  59. .TP
  60. .B \-audit
  61. Write events to timestamped file \fBaudit\-YYYYMMDD\-HHMMSS.log\fP\&.
  62. .UNINDENT
  63. .INDENT 0.0
  64. .TP
  65. .B \-auditfile=<file|\-|\-\->
  66. Use specified file or stream (\fB"\-"\fP for stdout, \fB"\-\-"\fP for stderr) for audit events, rather than the timestamped default file name.
  67. .UNINDENT
  68. .INDENT 0.0
  69. .TP
  70. .B \-browser\-only
  71. Open the web UI in a browser for an already running Syncthing instance.
  72. .UNINDENT
  73. .INDENT 0.0
  74. .TP
  75. .B \-device\-id
  76. Print device ID to command line.
  77. .UNINDENT
  78. .INDENT 0.0
  79. .TP
  80. .B \-generate=<dir>
  81. Generate key and config in specified dir, then exit.
  82. .UNINDENT
  83. .INDENT 0.0
  84. .TP
  85. .B \-gui\-address=<address>
  86. Override GUI listen address.
  87. .UNINDENT
  88. .INDENT 0.0
  89. .TP
  90. .B \-home=<dir>
  91. Set configuration directory. The default configuration directory is
  92. \fB$HOME/.config/syncthing\fP (Unix\-like), \fB$HOME/Library/Application Support/Syncthing\fP (Mac) and \fB%LOCALAPPDATA%\eSyncthing\fP (Windows).
  93. .UNINDENT
  94. .INDENT 0.0
  95. .TP
  96. .B \-logfile=<filename>
  97. Set destination filename for logging (use \fB"\-"\fP for stdout, which is the default option).
  98. .UNINDENT
  99. .INDENT 0.0
  100. .TP
  101. .B \-logflags=<flags>
  102. Select information in log line prefix, default 2. The \fB\-logflags\fP value is
  103. a sum of the following:
  104. .INDENT 7.0
  105. .IP \(bu 2
  106. 1: Date
  107. .IP \(bu 2
  108. 2: Time
  109. .IP \(bu 2
  110. 4: Microsecond time
  111. .IP \(bu 2
  112. 8: Long filename
  113. .IP \(bu 2
  114. 16: Short filename
  115. .UNINDENT
  116. .sp
  117. To prefix each log line with date and time, set \fB\-logflags=3\fP (1 + 2 from
  118. above). The value 0 is used to disable all of the above. The default is to
  119. show time only (2).
  120. .UNINDENT
  121. .INDENT 0.0
  122. .TP
  123. .B \-no\-browser
  124. Do not start a browser.
  125. .UNINDENT
  126. .INDENT 0.0
  127. .TP
  128. .B \-no\-console
  129. Hide the console window. (On Windows only)
  130. .UNINDENT
  131. .INDENT 0.0
  132. .TP
  133. .B \-no\-restart
  134. Disable the Syncthing monitor process which handles restarts for some configuration changes, upgrades, crashes and also log file writing (stdout is still written).
  135. .UNINDENT
  136. .INDENT 0.0
  137. .TP
  138. .B \-paths
  139. Print the paths used for configuration, keys, database, GUI overrides, default sync folder and the log file.
  140. .UNINDENT
  141. .INDENT 0.0
  142. .TP
  143. .B \-paused
  144. Start with all devices and folders paused.
  145. .UNINDENT
  146. .INDENT 0.0
  147. .TP
  148. .B \-reset\-database
  149. Reset the database, forcing a full rescan and resync.
  150. Create \fI\&.stfolder\fP folders in each sync folder if they do not already exist.
  151. \fBCaution\fP: Ensure that all sync folders which are mountpoints are already mounted. Inconsistent versions may result if the mountpoint is later mounted and contains older versions.
  152. .UNINDENT
  153. .INDENT 0.0
  154. .TP
  155. .B \-reset\-deltas
  156. Reset delta index IDs, forcing a full index exchange.
  157. .UNINDENT
  158. .INDENT 0.0
  159. .TP
  160. .B \-unpaused
  161. Start with all devices and folders unpaused.
  162. .UNINDENT
  163. .INDENT 0.0
  164. .TP
  165. .B \-upgrade
  166. Perform upgrade.
  167. .UNINDENT
  168. .INDENT 0.0
  169. .TP
  170. .B \-upgrade\-check
  171. Check for available upgrade.
  172. .UNINDENT
  173. .INDENT 0.0
  174. .TP
  175. .B \-upgrade\-to=<url>
  176. Force upgrade directly from specified URL.
  177. .UNINDENT
  178. .INDENT 0.0
  179. .TP
  180. .B \-verbose
  181. Print verbose log output.
  182. .UNINDENT
  183. .INDENT 0.0
  184. .TP
  185. .B \-version
  186. Show version.
  187. .UNINDENT
  188. .SH DEPRECATED OPTIONS
  189. .INDENT 0.0
  190. .TP
  191. .B \-gui\-apikey=<key>
  192. Override GUI API key (deprecated as of v0.13, to be removed in the future \- do not use).
  193. .UNINDENT
  194. .SH EXIT CODES
  195. .INDENT 0.0
  196. .TP
  197. .B 0
  198. Success / Shutdown
  199. .TP
  200. .B 1
  201. Error
  202. .TP
  203. .B 2
  204. Upgrade not available
  205. .TP
  206. .B 3
  207. Restarting
  208. .TP
  209. .B 4
  210. Upgrading
  211. .UNINDENT
  212. .sp
  213. Some of these exit codes are only returned when running without a monitor
  214. process (with environment variable \fBSTNORESTART\fP set). Exit codes over 125 are
  215. usually returned by the shell/binary loader/default signal handler. Exit codes
  216. over 128+N on Unix usually represent the signal which caused the process to
  217. exit. For example, \fB128 + 9 (SIGKILL) = 137\fP\&.
  218. .SH DEVELOPMENT SETTINGS
  219. .sp
  220. The following environment variables modify Syncthing\(aqs behavior in ways that
  221. are mostly useful for developers. Use with care.
  222. If you start Syncthing from within service managers like systemd or supervisor,
  223. path expansion may not be supported.
  224. .INDENT 0.0
  225. .TP
  226. .B STNODEFAULTFOLDER
  227. Don\(aqt create a default folder when starting for the first time. This
  228. variable will be ignored anytime after the first run.
  229. .TP
  230. .B STGUIASSETS
  231. Directory to load GUI assets from. Overrides compiled in assets.
  232. .TP
  233. .B STTRACE
  234. 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
  235. are:
  236. .INDENT 7.0
  237. .TP
  238. .B Main and operational facilities:
  239. .INDENT 7.0
  240. .TP
  241. .B main
  242. Main package.
  243. .TP
  244. .B model
  245. The root hub; the largest chunk of the system. File pulling, index transmission and requests for chunks.
  246. .TP
  247. .B config
  248. Configuration loading and saving.
  249. .TP
  250. .B db
  251. The database layer.
  252. .TP
  253. .B scanner
  254. File change detection and hashing.
  255. .TP
  256. .B versioner
  257. File versioning.
  258. .UNINDENT
  259. .TP
  260. .B Networking facilities:
  261. .INDENT 7.0
  262. .TP
  263. .B beacon
  264. Multicast and broadcast discovery packets.
  265. .TP
  266. .B connections
  267. Connection handling.
  268. .TP
  269. .B dialer
  270. Dialing connections.
  271. .TP
  272. .B discover
  273. Remote device discovery requests, replies and registration of devices.
  274. .TP
  275. .B relay
  276. Relay interaction.
  277. .TP
  278. .B protocol
  279. The BEP protocol.
  280. .TP
  281. .B nat
  282. NAT discovery and port mapping.
  283. .TP
  284. .B pmp
  285. NAT\-PMP discovery and port mapping.
  286. .TP
  287. .B upnp
  288. UPnP discovery and port mapping.
  289. .UNINDENT
  290. .TP
  291. .B Other facilities:
  292. .INDENT 7.0
  293. .TP
  294. .B events
  295. Event generation and logging.
  296. .TP
  297. .B http
  298. REST API.
  299. .TP
  300. .B sha256
  301. SHA256 hashing package (this facility currently unused).
  302. .TP
  303. .B stats
  304. Persistent device and folder statistics.
  305. .TP
  306. .B sync
  307. Mutexes. Used for debugging race conditions and deadlocks.
  308. .TP
  309. .B upgrade
  310. Binary upgrades.
  311. .TP
  312. .B all
  313. All of the above.
  314. .UNINDENT
  315. .UNINDENT
  316. .TP
  317. .B STPROFILER
  318. Set to a listen address such as "127.0.0.1:9090" to start the profiler with
  319. HTTP access.
  320. .TP
  321. .B STCPUPROFILE
  322. Write a CPU profile to cpu\-$pid.pprof on exit.
  323. .TP
  324. .B STHEAPPROFILE
  325. Write heap profiles to \fBheap\-$pid\-$timestamp.pprof\fP each time heap usage
  326. increases.
  327. .TP
  328. .B STBLOCKPROFILE
  329. Write block profiles to \fBblock\-$pid\-$timestamp.pprof\fP every 20 seconds.
  330. .TP
  331. .B STPERFSTATS
  332. Write running performance statistics to \fBperf\-$pid.csv\fP\&. Not supported on
  333. Windows.
  334. .TP
  335. .B STDEADLOCK
  336. Used for debugging internal deadlocks. Use only under direction of a
  337. developer.
  338. .TP
  339. .B STDEADLOCKTIMEOUT
  340. Used for debugging internal deadlocks; sets debug sensitivity. Use only
  341. under direction of a developer.
  342. .TP
  343. .B STDEADLOCKTHRESHOLD
  344. Used for debugging internal deadlocks; sets debug sensitivity. Use only
  345. under direction of a developer.
  346. .TP
  347. .B STNORESTART
  348. 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).
  349. .TP
  350. .B STNOUPGRADE
  351. Disable automatic upgrades.
  352. .TP
  353. .B STHASHING
  354. Specify which hashing package to use. Defaults to automatic based on
  355. performance. Specify "minio" (compatibility) or "standard" for the default Go implementation.
  356. .TP
  357. .B GOMAXPROCS
  358. Set the maximum number of CPU cores to use. Defaults to all available CPU
  359. cores.
  360. .TP
  361. .B GOGC
  362. Percentage of heap growth at which to trigger GC. Default is 100. Lower
  363. numbers keep peak memory usage down, at the price of CPU usage
  364. (i.e. performance).
  365. .UNINDENT
  366. .SH SEE ALSO
  367. .sp
  368. \fIsyncthing\-config(5)\fP, \fIsyncthing\-stignore(5)\fP,
  369. \fIsyncthing\-device\-ids(7)\fP, \fIsyncthing\-security(7)\fP,
  370. \fIsyncthing\-networking(7)\fP, \fIsyncthing\-versioning(7)\fP,
  371. \fIsyncthing\-faq(7)\fP
  372. .SH AUTHOR
  373. The Syncthing Authors
  374. .SH COPYRIGHT
  375. 2015, The Syncthing Authors
  376. .\" Generated by docutils manpage writer.
  377. .