syncthing.1 18 KB

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