syncthing.1 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621
  1. .\" Man page generated from reStructuredText.
  2. .
  3. .
  4. .nr rst2man-indent-level 0
  5. .
  6. .de1 rstReportMargin
  7. \\$1 \\n[an-margin]
  8. level \\n[rst2man-indent-level]
  9. level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
  10. -
  11. \\n[rst2man-indent0]
  12. \\n[rst2man-indent1]
  13. \\n[rst2man-indent2]
  14. ..
  15. .de1 INDENT
  16. .\" .rstReportMargin pre:
  17. . RS \\$1
  18. . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin]
  19. . nr rst2man-indent-level +1
  20. .\" .rstReportMargin post:
  21. ..
  22. .de UNINDENT
  23. . RE
  24. .\" indent \\n[an-margin]
  25. .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]]
  26. .nr rst2man-indent-level -1
  27. .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
  28. .in \\n[rst2man-indent\\n[rst2man-indent-level]]u
  29. ..
  30. .TH "SYNCTHING" "1" "Oct 07, 2022" "v1.22.0" "Syncthing"
  31. .SH NAME
  32. syncthing \- Syncthing
  33. .SH SYNOPSIS
  34. .INDENT 0.0
  35. .INDENT 3.5
  36. .sp
  37. .nf
  38. .ft C
  39. syncthing [serve]
  40. [\-\-audit] [\-\-auditfile=<file|\-|\-\->] [\-\-browser\-only] [\-\-device\-id]
  41. [\-\-generate=<dir>] [\-\-gui\-address=<address>] [\-\-gui\-apikey=<key>]
  42. [\-\-home=<dir> | \-\-config=<dir> \-\-data=<dir>]
  43. [\-\-logfile=<filename>] [\-\-logflags=<flags>]
  44. [\-\-log\-max\-old\-files=<num>] [\-\-log\-max\-size=<num>]
  45. [\-\-no\-browser] [\-\-no\-console] [\-\-no\-restart] [\-\-paths] [\-\-paused]
  46. [\-\-no\-default\-folder] [\-\-skip\-port\-probing]
  47. [\-\-reset\-database] [\-\-reset\-deltas] [\-\-unpaused] [\-\-allow\-newer\-config]
  48. [\-\-upgrade] [\-\-no\-upgrade] [\-\-upgrade\-check] [\-\-upgrade\-to=<url>]
  49. [\-\-verbose] [\-\-version] [\-\-help] [\-\-debug\-*]
  50. syncthing generate
  51. [\-\-home=<dir> | \-\-config=<dir>]
  52. [\-\-gui\-user=<username>] [\-\-gui\-password=<password|\->]
  53. [\-\-no\-default\-folder] [\-\-skip\-port\-probing] [\-\-no\-console]
  54. [\-\-help]
  55. syncthing decrypt (\-\-to=<dir> | \-\-verify\-only)
  56. [\-\-password=<pw>] [\-\-folder\-id=<id>] [\-\-token\-path=<file>]
  57. [\-\-continue] [\-\-verbose] [\-\-version] [\-\-help]
  58. <path>
  59. syncthing cli
  60. [\-\-home=<dir> | \-\-config=<dir> \-\-data=<dir>]
  61. [\-\-gui\-address=<address>] [\-\-gui\-apikey=<key>]
  62. [\-\-help]
  63. <command> [command options...] [arguments...]
  64. .ft P
  65. .fi
  66. .UNINDENT
  67. .UNINDENT
  68. .SH DESCRIPTION
  69. .sp
  70. Syncthing lets you synchronize your files bidirectionally across multiple
  71. devices. This means the creation, modification or deletion of files on one
  72. machine will automatically be replicated to your other devices. We believe your
  73. data is your data alone and you deserve to choose where it is stored. Therefore
  74. Syncthing does not upload your data to the cloud but exchanges your data across
  75. your machines as soon as they are online at the same time.
  76. .sp
  77. The \fBsyncthing\fP core application is a command\-line program which usually runs
  78. in the background and handles the synchronization. It provides a built\-in, HTML
  79. and JavaScript based user interface to be controlled from a web browser. This
  80. frontend communicates with the core application through some HTTP APIs, which
  81. other apps like graphical system integration helpers can use as well, for
  82. greatest flexibility. A link to reach the GUI and API is printed among the first
  83. few log messages.
  84. .SH OPTIONS
  85. .INDENT 0.0
  86. .TP
  87. .B \-\-allow\-newer\-config
  88. Try loading a config file written by a newer program version, instead of
  89. failing immediately.
  90. .UNINDENT
  91. .INDENT 0.0
  92. .TP
  93. .B \-\-audit
  94. Write events to timestamped file \fBaudit\-YYYYMMDD\-HHMMSS.log\fP\&.
  95. .UNINDENT
  96. .INDENT 0.0
  97. .TP
  98. .B \-\-auditfile=<file|\-|\-\->
  99. Use specified file or stream (\fB"\-"\fP for stdout, \fB"\-\-"\fP for stderr) for
  100. audit events, rather than the timestamped default file name.
  101. .UNINDENT
  102. .INDENT 0.0
  103. .TP
  104. .B \-\-browser\-only
  105. Open the web UI in a browser for an already running Syncthing instance.
  106. .UNINDENT
  107. .INDENT 0.0
  108. .TP
  109. .B \-\-device\-id
  110. Print device ID to command line.
  111. .UNINDENT
  112. .INDENT 0.0
  113. .TP
  114. .B \-\-generate=<dir>
  115. Generate key and config in specified dir, then exit.
  116. .UNINDENT
  117. .INDENT 0.0
  118. .TP
  119. .B \-\-gui\-address=<address>
  120. Override GUI listen address. Set this to an address (\fB0.0.0.0:8384\fP)
  121. or file path (\fB/var/run/st.sock\fP, for UNIX sockets).
  122. .UNINDENT
  123. .INDENT 0.0
  124. .TP
  125. .B \-\-gui\-apikey=<string>
  126. Override the API key needed to access the GUI / REST API.
  127. .UNINDENT
  128. .INDENT 0.0
  129. .TP
  130. .B \-\-gui\-password=<password|\->
  131. Specify new GUI authentication password, to update the config file. Read
  132. from the standard input stream if only a single dash (\fB\-\fP) is given. The
  133. password is hashed before writing to the config file. As a special case,
  134. giving the existing password hash as password will leave it untouched.
  135. .UNINDENT
  136. .INDENT 0.0
  137. .TP
  138. .B \-\-gui\-user=<username>
  139. Specify new GUI authentication user name, to update the config file.
  140. .UNINDENT
  141. .INDENT 0.0
  142. .TP
  143. .B \-\-help, \-h
  144. Show help text about command line usage. Context\-sensitive depending on the
  145. given subcommand.
  146. .UNINDENT
  147. .INDENT 0.0
  148. .TP
  149. .B \-\-home=<dir>
  150. Set common configuration and data directory. The default configuration
  151. directory is \fB$HOME/.config/syncthing\fP (Unix\-like),
  152. \fB$HOME/Library/Application Support/Syncthing\fP (Mac) and
  153. \fB%LOCALAPPDATA%\eSyncthing\fP (Windows).
  154. .UNINDENT
  155. .INDENT 0.0
  156. .TP
  157. .B \-\-config=<dir>
  158. Set configuration directory. Alternative to \fB\-\-home\fP and must be used
  159. together with \fB\-\-data\fP\&.
  160. .UNINDENT
  161. .INDENT 0.0
  162. .TP
  163. .B \-\-data=<dir>
  164. Set data (e.g. database) directory. Alternative to \fB\-\-home\fP and must be used
  165. together with \fB\-\-config\fP\&.
  166. .UNINDENT
  167. .INDENT 0.0
  168. .TP
  169. .B \-\-logfile=<filename>
  170. Set destination filename for logging (use \fB"\-"\fP for stdout, which is the
  171. default option).
  172. .UNINDENT
  173. .INDENT 0.0
  174. .TP
  175. .B \-\-logflags=<flags>
  176. Select information in log line prefix. The \fB\-\-logflags\fP value is a sum of
  177. the following:
  178. .INDENT 7.0
  179. .IP \(bu 2
  180. 1: Date
  181. .IP \(bu 2
  182. 2: Time
  183. .IP \(bu 2
  184. 4: Microsecond time
  185. .IP \(bu 2
  186. 8: Long filename
  187. .IP \(bu 2
  188. 16: Short filename
  189. .UNINDENT
  190. .sp
  191. To prefix each log line with date and time, set \fB\-\-logflags=3\fP (1 + 2 from
  192. above). The value 0 is used to disable all of the above. The default is to
  193. show time only (2).
  194. .UNINDENT
  195. .INDENT 0.0
  196. .TP
  197. .B \-\-log\-max\-old\-files=<num>
  198. Number of old files to keep (zero to keep only current). Applies only when
  199. log rotation is enabled through \fB\-\-log\-max\-size\fP\&.
  200. .UNINDENT
  201. .INDENT 0.0
  202. .TP
  203. .B \-\-log\-max\-size=<num>
  204. Maximum size of any log file (zero to disable log rotation).
  205. .UNINDENT
  206. .INDENT 0.0
  207. .TP
  208. .B \-\-no\-browser
  209. Do not start a browser.
  210. .UNINDENT
  211. .INDENT 0.0
  212. .TP
  213. .B \-\-no\-console
  214. Hide the console window. (On Windows only)
  215. .UNINDENT
  216. .INDENT 0.0
  217. .TP
  218. .B \-\-no\-default\-folder
  219. Don’t create a default folder when generating an initial configuration /
  220. starting for the first time.
  221. .UNINDENT
  222. .INDENT 0.0
  223. .TP
  224. .B \-\-no\-restart
  225. Do not restart Syncthing when it exits. The monitor process will still run
  226. to handle crashes and writing to logfiles (if configured to).
  227. .UNINDENT
  228. .INDENT 0.0
  229. .TP
  230. .B \-\-no\-upgrade
  231. Disable automatic upgrades. Equivalent to the \fBSTNOUPGRADE\fP environment
  232. variable, see below.
  233. .UNINDENT
  234. .INDENT 0.0
  235. .TP
  236. .B \-\-paths
  237. Print the paths used for configuration, keys, database, GUI overrides,
  238. default sync folder and the log file.
  239. .UNINDENT
  240. .INDENT 0.0
  241. .TP
  242. .B \-\-paused
  243. Start with all devices and folders paused.
  244. .UNINDENT
  245. .INDENT 0.0
  246. .TP
  247. .B \-\-reset\-database
  248. Reset the database, forcing a full rescan and resync. Create \fI\&.stfolder\fP
  249. folders in each sync folder if they do not already exist. \fBCaution\fP:
  250. Ensure that all sync folders which are mountpoints are already mounted.
  251. Inconsistent versions may result if the mountpoint is later mounted and
  252. contains older versions.
  253. .UNINDENT
  254. .INDENT 0.0
  255. .TP
  256. .B \-\-reset\-deltas
  257. Reset delta index IDs, forcing a full index exchange.
  258. .UNINDENT
  259. .INDENT 0.0
  260. .TP
  261. .B \-\-skip\-port\-probing
  262. Don’t try to find unused random ports for the GUI and listen address when
  263. generating an initial configuration / starting for the first time.
  264. .UNINDENT
  265. .INDENT 0.0
  266. .TP
  267. .B \-\-unpaused
  268. Start with all devices and folders unpaused.
  269. .UNINDENT
  270. .INDENT 0.0
  271. .TP
  272. .B \-\-upgrade
  273. Perform upgrade.
  274. .UNINDENT
  275. .INDENT 0.0
  276. .TP
  277. .B \-\-upgrade\-check
  278. Check for available upgrade.
  279. .UNINDENT
  280. .INDENT 0.0
  281. .TP
  282. .B \-\-upgrade\-to=<url>
  283. Force upgrade directly from specified URL.
  284. .UNINDENT
  285. .INDENT 0.0
  286. .TP
  287. .B \-\-verbose
  288. Print verbose log output.
  289. .UNINDENT
  290. .INDENT 0.0
  291. .TP
  292. .B \-\-version
  293. Show version.
  294. .UNINDENT
  295. .INDENT 0.0
  296. .TP
  297. .B \-\-to=<dir>
  298. Destination directory where files should be stored after decryption.
  299. .UNINDENT
  300. .INDENT 0.0
  301. .TP
  302. .B \-\-verify\-only
  303. Don’t write decrypted files to disk (but verify plaintext hashes).
  304. .UNINDENT
  305. .INDENT 0.0
  306. .TP
  307. .B \-\-password=<pw>
  308. Folder password for decryption / verification. Can be passed through the
  309. \fBFOLDER_PASSWORD\fP environment variable instead to avoid recording in a
  310. shell’s history buffer or sniffing from the running processes list.
  311. .UNINDENT
  312. .INDENT 0.0
  313. .TP
  314. .B \-\-folder\-id=<id>
  315. Folder ID of the encrypted folder, if it cannot be determined automatically.
  316. .UNINDENT
  317. .INDENT 0.0
  318. .TP
  319. .B \-\-token\-path=<file>
  320. Path to the token file within the folder (used to determine folder ID).
  321. .UNINDENT
  322. .INDENT 0.0
  323. .TP
  324. .B \-\-continue
  325. Continue processing next file in case of error, instead of aborting.
  326. .UNINDENT
  327. .SH EXIT CODES
  328. .INDENT 0.0
  329. .TP
  330. .B 0
  331. Success / Shutdown
  332. .TP
  333. .B 1
  334. Error
  335. .TP
  336. .B 2
  337. Upgrade not available
  338. .TP
  339. .B 3
  340. Restarting
  341. .TP
  342. .B 4
  343. Upgrading
  344. .UNINDENT
  345. .sp
  346. Exit codes over 125 are usually returned by the shell/binary loader/default
  347. signal handler. Exit codes over 128+N on Unix usually represent the signal which
  348. caused the process to exit. For example, \fB128 + 9 (SIGKILL) = 137\fP\&.
  349. .SH SUBCOMMANDS
  350. .sp
  351. The command line syntax actually supports different modes of operation through
  352. several subcommands, specified as the first argument. If omitted, the default
  353. \fBserve\fP is assumed.
  354. .sp
  355. The initial setup of a device ID and default configuration can be called
  356. explicitly with the \fBgenerate\fP subcommand. It can also update the configured
  357. GUI authentication credentials, without going through the REST API. An existing
  358. device certificate is left untouched. If the configuration file already exists,
  359. it is validated and updated to the latest configuration schema, including adding
  360. default values for any new options.
  361. .sp
  362. The \fBdecrypt\fP subcommand is used in conjunction with untrusted (encrypted)
  363. devices, see the relevant section on decryption for
  364. details. It does not depend on Syncthing to be running, but works on offline
  365. data.
  366. .sp
  367. To work with the REST API for debugging or automating things in Syncthing, the
  368. \fBcli\fP subcommand provides easy access to individual features. It basically
  369. saves the hassle of handling HTTP connections and API authentication.
  370. .sp
  371. The available subcommands are grouped into several nested hierarchies and some
  372. parts dynamically generated from the running Syncthing instance. On every
  373. level, the \fB\-\-help\fP option lists the available properties, actions and
  374. commands for the user to discover interactively. The top\-level groups are:
  375. .INDENT 0.0
  376. .TP
  377. .B config
  378. Access the live configuration in a running instance over the REST API to
  379. retrieve (get) or update (set) values in a fine\-grained way. The hierarchy
  380. is based on the same structure as used in the JSON / XML representations.
  381. .TP
  382. .B show
  383. Show system properties and status of a running instance. The output is
  384. passed on directly from the REST API response and therefore requires parsing
  385. JSON format.
  386. .TP
  387. .B operations
  388. Control the overall program operation such as restarting or handling
  389. upgrades, as well as triggering some actions on a per\-folder basis. Can
  390. also configure the default ignore patterns from a plain text ignore file.
  391. .TP
  392. .B errors
  393. Examine pending error conditions that need attention from the user, or
  394. acknowledge (clear) them.
  395. .TP
  396. .B debug
  397. Various tools to aid in diagnosing problems or collection information for
  398. bug reports. Some of these commands access the database directly and can
  399. therefore only work when Syncthing is not running.
  400. .TP
  401. .B \fB\-\fP (a single dash)
  402. Reads subsequent commands from the standard input stream, without needing to
  403. call the \fBsyncthing cli\fP command over and over. Exits on any invalid
  404. command or when EOF (end\-of\-file) is received.
  405. .UNINDENT
  406. .SH PROXIES
  407. .sp
  408. Syncthing can use a SOCKS, HTTP, or HTTPS proxy to talk to the outside
  409. world. The proxy is used for outgoing connections only \- it is not possible
  410. to accept incoming connections through the proxy. The proxy is configured
  411. through the environment variable \fBall_proxy\fP\&. Somewhat unusually, this
  412. variable must be named in lower case \- it is not “ALL_PROXY”. For
  413. example:
  414. .INDENT 0.0
  415. .INDENT 3.5
  416. .sp
  417. .nf
  418. .ft C
  419. $ export all_proxy=socks://192.0.2.42:8081
  420. .ft P
  421. .fi
  422. .UNINDENT
  423. .UNINDENT
  424. .SH DEVELOPMENT SETTINGS
  425. .sp
  426. The following environment variables modify Syncthing’s behavior in ways that
  427. are mostly useful for developers. Use with care.
  428. If you start Syncthing from within service managers like systemd or supervisor,
  429. path expansion may not be supported.
  430. .INDENT 0.0
  431. .TP
  432. .B STTRACE
  433. Used to increase the debugging verbosity in specific or all facilities,
  434. generally mapping to a Go package. Enabling any of these also enables
  435. microsecond timestamps, file names plus line numbers. Enter a
  436. comma\-separated string of facilities to trace. \fBsyncthing \-\-help\fP always
  437. outputs an up\-to\-date list. The valid facility strings are:
  438. .INDENT 7.0
  439. .TP
  440. .B Main and operational facilities:
  441. .INDENT 7.0
  442. .TP
  443. .B config
  444. Configuration loading and saving.
  445. .TP
  446. .B db
  447. The database layer.
  448. .TP
  449. .B main
  450. Main package.
  451. .TP
  452. .B model
  453. The root hub; the largest chunk of the system. File pulling, index
  454. transmission and requests for chunks.
  455. .TP
  456. .B scanner
  457. File change detection and hashing.
  458. .TP
  459. .B versioner
  460. File versioning.
  461. .UNINDENT
  462. .TP
  463. .B Networking facilities:
  464. .INDENT 7.0
  465. .TP
  466. .B beacon
  467. Multicast and broadcast UDP discovery packets: Selected interfaces
  468. and addresses.
  469. .TP
  470. .B connections
  471. Connection handling.
  472. .TP
  473. .B dialer
  474. Dialing connections.
  475. .TP
  476. .B discover
  477. Remote device discovery requests, replies and registration of
  478. devices.
  479. .TP
  480. .B nat
  481. NAT discovery and port mapping.
  482. .TP
  483. .B pmp
  484. NAT\-PMP discovery and port mapping.
  485. .TP
  486. .B protocol
  487. The BEP protocol.
  488. .TP
  489. .B relay
  490. Relay interaction (\fBstrelaysrv\fP).
  491. .TP
  492. .B upnp
  493. UPnP discovery and port mapping.
  494. .UNINDENT
  495. .TP
  496. .B Other facilities:
  497. .INDENT 7.0
  498. .TP
  499. .B fs
  500. Filesystem access.
  501. .TP
  502. .B events
  503. Event generation and logging.
  504. .TP
  505. .B http
  506. REST API.
  507. .TP
  508. .B sha256
  509. SHA256 hashing package (this facility currently unused).
  510. .TP
  511. .B stats
  512. Persistent device and folder statistics.
  513. .TP
  514. .B sync
  515. Mutexes. Used for debugging race conditions and deadlocks.
  516. .TP
  517. .B upgrade
  518. Binary upgrades.
  519. .TP
  520. .B walkfs
  521. Filesystem access while walking.
  522. .TP
  523. .B all
  524. All of the above.
  525. .UNINDENT
  526. .UNINDENT
  527. .TP
  528. .B STBLOCKPROFILE
  529. Write block profiles to \fBblock\-$pid\-$timestamp.pprof\fP every 20 seconds.
  530. .TP
  531. .B STCPUPROFILE
  532. Write a CPU profile to \fBcpu\-$pid.pprof\fP on exit.
  533. .TP
  534. .B STDEADLOCKTIMEOUT
  535. Used for debugging internal deadlocks; sets debug sensitivity. Use only
  536. under direction of a developer.
  537. .TP
  538. .B STLOCKTHRESHOLD
  539. Used for debugging internal deadlocks; sets debug sensitivity. Use only
  540. under direction of a developer.
  541. .TP
  542. .B STGUIADDRESS
  543. Override GUI listen address. Equivalent to passing \fI\%\-\-gui\-address\fP\&.
  544. .TP
  545. .B STGUIAPIKEY
  546. Override the API key needed to access the GUI / REST API. Equivalent to
  547. passing \fI\%\-\-gui\-apikey\fP\&.
  548. .TP
  549. .B STGUIASSETS
  550. Directory to load GUI assets from. Overrides compiled in assets. Useful for
  551. developing webgui, commonly use \fBSTGUIASSETS=gui bin/syncthing\fP\&.
  552. .TP
  553. .B STHASHING
  554. Specify which hashing package to use. Defaults to automatic based on
  555. performance. Specify “minio” (compatibility) or “standard” for the default
  556. Go implementation.
  557. .TP
  558. .B STHEAPPROFILE
  559. Write heap profiles to \fBheap\-$pid\-$timestamp.pprof\fP each time heap usage
  560. increases.
  561. .TP
  562. .B STNODEFAULTFOLDER
  563. Don’t create a default folder when starting for the first time. This
  564. variable will be ignored anytime after the first run. Equivalent to the
  565. \fI\%\-\-no\-default\-folder\fP flag.
  566. .TP
  567. .B STNORESTART
  568. Equivalent to the \fI\%\-\-no\-restart\fP flag.
  569. .TP
  570. .B STNOUPGRADE
  571. Disable automatic upgrades. Equivalent to the \fI\%\-\-no\-upgrade\fP flag.
  572. .TP
  573. .B STPROFILER
  574. Set to a listen address such as “127.0.0.1:9090” to start the profiler with
  575. HTTP access, which then can be reached at
  576. \fI\%http://localhost:9090/debug/pprof\fP\&. See \fBgo tool pprof\fP for more
  577. information.
  578. .TP
  579. .B STPERFSTATS
  580. Write running performance statistics to \fBperf\-$pid.csv\fP\&. Not supported on
  581. Windows.
  582. .TP
  583. .B STRECHECKDBEVERY
  584. Time before folder statistics (file, dir, … counts) are recalculated from
  585. scratch. The given duration must be parseable by Go’s \fBtime.ParseDuration\fP\&. If
  586. missing or not parseable, the default value of 1 month is used. To force
  587. recalculation on every startup, set it to \fB1s\fP\&.
  588. .TP
  589. .B STGCINDIRECTEVERY
  590. Sets the time interval in between database garbage collection runs. The
  591. given duration must be parseable by Go’s \fBtime.ParseDuration\fP\&.
  592. .TP
  593. .B GOMAXPROCS
  594. Set the maximum number of CPU cores to use. Defaults to all available CPU
  595. cores.
  596. .TP
  597. .B GOGC
  598. Percentage of heap growth at which to trigger GC. Default is 100. Lower
  599. numbers keep peak memory usage down, at the price of CPU usage
  600. (i.e. performance).
  601. .TP
  602. .B LOGGER_DISCARD
  603. Hack to completely disable logging, for example when running benchmarks.
  604. Set to any nonempty value to use it.
  605. .UNINDENT
  606. .SH SEE ALSO
  607. .sp
  608. \fBsyncthing\-config(5)\fP, \fBsyncthing\-stignore(5)\fP,
  609. \fBsyncthing\-device\-ids(7)\fP, \fBsyncthing\-security(7)\fP,
  610. \fBsyncthing\-networking(7)\fP, \fBsyncthing\-versioning(7)\fP,
  611. \fBsyncthing\-faq(7)\fP
  612. .SH AUTHOR
  613. The Syncthing Authors
  614. .SH COPYRIGHT
  615. 2014-2019, The Syncthing Authors
  616. .\" Generated by docutils manpage writer.
  617. .