syncthing-faq.7 33 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740
  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-FAQ" "7" "Apr 26, 2025" "v1.29.3" "Syncthing"
  31. .SH NAME
  32. syncthing-faq \- Frequently Asked Questions
  33. .INDENT 0.0
  34. .IP \(bu 2
  35. \fI\%General\fP
  36. .INDENT 2.0
  37. .IP \(bu 2
  38. \fI\%What is Syncthing?\fP
  39. .IP \(bu 2
  40. \fI\%Is it “syncthing”, “Syncthing” or “SyncThing”?\fP
  41. .IP \(bu 2
  42. \fI\%What things are synced?\fP
  43. .IP \(bu 2
  44. \fI\%Is synchronization fast?\fP
  45. .IP \(bu 2
  46. \fI\%How does Syncthing differ from BitTorrent/Resilio Sync?\fP
  47. .IP \(bu 2
  48. \fI\%Is there an iOS client?\fP
  49. .IP \(bu 2
  50. \fI\%Should I keep my device IDs secret?\fP
  51. .UNINDENT
  52. .IP \(bu 2
  53. \fI\%Troubleshooting\fP
  54. .INDENT 2.0
  55. .IP \(bu 2
  56. \fI\%Where are the Syncthing logs?\fP
  57. .IP \(bu 2
  58. \fI\%Why is the sync so slow?\fP
  59. .IP \(bu 2
  60. \fI\%Why does it use so much CPU?\fP
  61. .IP \(bu 2
  62. \fI\%Why is the setup more complicated than BitTorrent/Resilio Sync?\fP
  63. .IP \(bu 2
  64. \fI\%Why do I get “Host check error” in the GUI/API?\fP
  65. .IP \(bu 2
  66. \fI\%My Syncthing database is corrupt\fP
  67. .IP \(bu 2
  68. \fI\%Why do I see Syncthing twice in task manager?\fP
  69. .IP \(bu 2
  70. \fI\%How can I view the history of changes?\fP
  71. .IP \(bu 2
  72. \fI\%Does the audit log contain every change?\fP
  73. .IP \(bu 2
  74. \fI\%Why does Syncthing connect to this unknown/suspicious address?\fP
  75. .IP \(bu 2
  76. \fI\%I am seeing the error message “folder marker missing”. What do I do?\fP
  77. .IP \(bu 2
  78. \fI\%Why do my Windows computers always connect through a relay?\fP
  79. .UNINDENT
  80. .IP \(bu 2
  81. \fI\%Usage\fP
  82. .INDENT 2.0
  83. .IP \(bu 2
  84. \fI\%What if there is a conflict?\fP
  85. .IP \(bu 2
  86. \fI\%How do I serve a folder from a read only filesystem?\fP
  87. .IP \(bu 2
  88. \fI\%I really hate the .stfolder directory, can I remove it?\fP
  89. .IP \(bu 2
  90. \fI\%Am I able to nest shared folders in Syncthing?\fP
  91. .IP \(bu 2
  92. \fI\%How do I rename/move a synced folder?\fP
  93. .IP \(bu 2
  94. \fI\%How do I configure multiple users on a single machine?\fP
  95. .IP \(bu 2
  96. \fI\%Does Syncthing support syncing between folders on the same system?\fP
  97. .IP \(bu 2
  98. \fI\%When I do have two distinct Syncthing\-managed folders on two hosts, how does Syncthing handle moving files between them?\fP
  99. .IP \(bu 2
  100. \fI\%Can I help initial sync by copying files manually?\fP
  101. .IP \(bu 2
  102. \fI\%Is Syncthing my ideal backup application?\fP
  103. .IP \(bu 2
  104. \fI\%How can I exclude files with brackets ([]) in the name?\fP
  105. .IP \(bu 2
  106. \fI\%How do I access the web GUI from another computer?\fP
  107. .IP \(bu 2
  108. \fI\%I don’t like the GUI or the theme. Can it be changed?\fP
  109. .IP \(bu 2
  110. \fI\%How do I upgrade Syncthing?\fP
  111. .IP \(bu 2
  112. \fI\%Where do I find the latest release?\fP
  113. .IP \(bu 2
  114. \fI\%How do I run Syncthing as a daemon process on Linux?\fP
  115. .IP \(bu 2
  116. \fI\%How do I increase the inotify limit to get my filesystem watcher to work?\fP
  117. .IP \(bu 2
  118. \fI\%How do I reset the GUI password?\fP
  119. .UNINDENT
  120. .UNINDENT
  121. .SH GENERAL
  122. .SS What is Syncthing?
  123. .sp
  124. Syncthing is an application that lets you synchronize your files across multiple
  125. devices. This means the creation, modification or deletion of files on one
  126. machine will automatically be replicated to your other devices. We believe your
  127. data is your data alone and you deserve to choose where it is stored. Therefore
  128. Syncthing does not upload your data to the cloud but exchanges your data across
  129. your machines as soon as they are online at the same time.
  130. .SS Is it “syncthing”, “Syncthing” or “SyncThing”?
  131. .sp
  132. It’s \fBSyncthing\fP, although the command and source repository is spelled
  133. \fBsyncthing\fP so it may be referred to in that way as well. It’s definitely not
  134. SyncThing, even though the abbreviation \fBst\fP is used in some
  135. circumstances and file names.
  136. .SS What things are synced?
  137. .sp
  138. The following things are \fIalways\fP synchronized:
  139. .INDENT 0.0
  140. .IP \(bu 2
  141. File contents
  142. .IP \(bu 2
  143. File modification times
  144. .UNINDENT
  145. .sp
  146. The following may be synchronized or not, depending:
  147. .INDENT 0.0
  148. .IP \(bu 2
  149. File permissions (when supported by file system; on Windows only the
  150. read only bit is synchronized)
  151. .IP \(bu 2
  152. Symbolic links (synced, except on Windows, but never followed)
  153. .IP \(bu 2
  154. File or directory owners and groups (when enabled)
  155. .IP \(bu 2
  156. Extended attributes (when enabled)
  157. .IP \(bu 2
  158. POSIX or NFS ACLs (as part of extended attributes)
  159. .UNINDENT
  160. .sp
  161. The following are \fInot\fP synchronized;
  162. .INDENT 0.0
  163. .IP \(bu 2
  164. Directory modification times (not preserved)
  165. .IP \(bu 2
  166. Hard links (followed, not preserved)
  167. .IP \(bu 2
  168. Windows junctions (synced as ordinary directories; require enabling in
  169. \fI\%the configuration\fP on a per\-folder
  170. basis)
  171. .IP \(bu 2
  172. Resource forks (not preserved)
  173. .IP \(bu 2
  174. Windows ACLs (not preserved)
  175. .IP \(bu 2
  176. Devices, FIFOs, and other specials (ignored)
  177. .IP \(bu 2
  178. Sparse file sparseness (will become sparse, when supported by the OS & filesystem)
  179. .IP \(bu 2
  180. Syncthing internal files and folders (e.g. \fB\&.stfolder\fP, \fB\&.stignore\fP,
  181. \fB\&.stversions\fP, \fI\%temporary files\fP, etc.)
  182. .UNINDENT
  183. .SS Is synchronization fast?
  184. .sp
  185. Syncthing segments files into pieces, called blocks, to transfer data from one
  186. device to another. Therefore, multiple devices can share the synchronization
  187. load, in a similar way to the torrent protocol. The more devices you have online,
  188. the faster an additional device will receive the data
  189. because small blocks will be fetched from all devices in parallel.
  190. .sp
  191. Syncthing handles renaming files and updating their metadata in an efficient
  192. manner. This means that renaming a file will not cause a retransmission of
  193. that file. Additionally, appending data to existing files should be handled
  194. efficiently as well.
  195. .sp
  196. \fI\%Temporary files\fP are used to store partial data
  197. downloaded from other devices. They are automatically removed whenever a file
  198. transfer has been completed or after the configured amount of time which is set
  199. in the configuration file (24 hours by default).
  200. .SS How does Syncthing differ from BitTorrent/Resilio Sync?
  201. .sp
  202. The two are different and not related. Syncthing and BitTorrent/Resilio Sync accomplish
  203. some of the same things, namely syncing files between two or more computers.
  204. .sp
  205. BitTorrent Sync, now called Resilio Sync, is a proprietary peer\-to\-peer file
  206. synchronization tool available for Windows, Mac, Linux, Android, iOS, Windows
  207. Phone, Amazon Kindle Fire and BSD. [1] Syncthing is an open source file
  208. synchronization tool.
  209. .sp
  210. Syncthing uses an open and documented protocol, and likewise the security
  211. mechanisms in use are well defined and visible in the source code. Resilio
  212. Sync uses an undocumented, closed protocol with unknown security properties.
  213. .IP [1] 5
  214. \X'tty: link https://en.wikipedia.org/wiki/Resilio_Sync'\fI\%https://en.wikipedia.org/wiki/Resilio_Sync\fP\X'tty: link'
  215. .SS Is there an iOS client?
  216. .sp
  217. There are no plans by the current Syncthing team to officially support iOS in the foreseeable future.
  218. .sp
  219. iOS has significant restrictions on background processing that make it very hard to
  220. run Syncthing reliably and integrate it into the system.
  221. .sp
  222. However, there is an open source app for iOS, incorporating Syncthing, that attempts to work within
  223. these limitations. It provides a native UI and features for selective synchronization as well as
  224. on\-demand access to files. Most Syncthing features are available, but the native UI is simplified
  225. compared to the official client. [2]
  226. .sp
  227. There is also a commercial packaging of Syncthing. It provides access to all Syncthing functionalities
  228. through the original UI. [3]
  229. .IP [2] 5
  230. \X'tty: link https://github.com/pixelspark/sushitrain'\fI\%https://github.com/pixelspark/sushitrain\fP\X'tty: link'
  231. .IP [3] 5
  232. \X'tty: link https://www.mobiussync.com'\fI\%https://www.mobiussync.com\fP\X'tty: link'
  233. .SS Should I keep my device IDs secret?
  234. .sp
  235. No. The IDs are not sensitive. Given a device ID it’s possible to find the IP
  236. address for that device, if global discovery is enabled on it. Knowing the device
  237. ID doesn’t help you actually establish a connection to that device or get a list
  238. of files, etc.
  239. .sp
  240. For a connection to be established, both devices need to know about the other’s
  241. device ID. It’s not possible (in practice) to forge a device ID. (To forge a
  242. device ID you need to create a TLS certificate with that specific SHA\-256 hash.
  243. If you can do that, you can spoof any TLS certificate. The world is your
  244. oyster!)
  245. .sp
  246. \fBSEE ALSO:\fP
  247. .INDENT 0.0
  248. .INDENT 3.5
  249. \fI\%Understanding Device IDs\fP
  250. .UNINDENT
  251. .UNINDENT
  252. .SH TROUBLESHOOTING
  253. .SS Where are the Syncthing logs?
  254. .sp
  255. Syncthing logs to stdout by default. On Windows Syncthing by default also
  256. creates \fBsyncthing.log\fP in Syncthing’s home directory (run \fBsyncthing
  257. \-\-paths\fP to see where that is). The command line option \fB\-\-logfile\fP can be
  258. used to specify a user\-defined logfile. If you only have access to a running
  259. instance’s GUI, click the \fIHelp\fP \-> \fIAbout\fP menu item, then the \fIPaths\fP tab.
  260. .sp
  261. If you’re running a process manager like systemd, check there. If you’re
  262. using a GUI wrapper integration, it may keep the logs for you.
  263. .SS Why is the sync so slow?
  264. .sp
  265. When troubleshooting a slow sync, there are a number of things to check.
  266. .sp
  267. First of all, verify that you are not connected via a relay. In the “Remote
  268. Devices” list on the right side of the GUI, double check that the Connection
  269. Type does \fInot\fP start with “Relay”.
  270. .sp
  271. Here is an example of a device connected via a relay:
  272. [image]
  273. .sp
  274. If you are connected via a relay, this is because a direct connection could
  275. not be established. Double check and follow the suggestions in
  276. \fI\%Firewall Setup\fP to enable direct connections.
  277. .sp
  278. Second, if one of the devices is a very low powered machine (a Raspberry Pi,
  279. or a phone, or a NAS, or similar) you are likely constrained by the CPU on
  280. that device. See the next question for reasons Syncthing likes a faster CPU.
  281. .sp
  282. Third, verify that the network connection is OK. Tools such as iperf or just
  283. an Internet speed test can be used to verify the performance here.
  284. .SS Why does it use so much CPU?
  285. .INDENT 0.0
  286. .IP 1. 3
  287. When new or changed files are detected, or Syncthing starts for the
  288. first time, your files are hashed using SHA\-256.
  289. .IP 2. 3
  290. Data that is sent over the network is compressed (optionally) and
  291. encrypted (always). When receiving data it must be decrypted and then (if
  292. compressed) decompressed.
  293. .IP 3. 3
  294. There is a certain amount of housekeeping that must be done to track the
  295. current and available versions of each file in the index database.
  296. .IP 4. 3
  297. By default Syncthing uses periodic scanning every hour when watching for
  298. changes or every minute if that’s disabled to detect
  299. file changes. This means checking every file’s modification time and
  300. comparing it to the database. This can cause spikes of CPU usage for large
  301. folders.
  302. .UNINDENT
  303. .sp
  304. Hashing, compression and encryption cost CPU time. Also, using the GUI
  305. causes a certain amount of extra CPU usage to calculate the summary data it
  306. presents. Note however that once things are \fIin sync\fP CPU usage should be
  307. negligible.
  308. .sp
  309. To minimize the impact of this, Syncthing attempts to \fI\%lower the
  310. process priority\fP when starting up.
  311. .sp
  312. To further limit the amount of CPU used when syncing and scanning, set the
  313. environment variable \fBGOMAXPROCS\fP to the maximum number of CPU cores
  314. Syncthing should use at any given moment. For example, \fBGOMAXPROCS=2\fP on a
  315. machine with four cores will limit Syncthing to no more than half the
  316. system’s CPU power.
  317. .SS Why is the setup more complicated than BitTorrent/Resilio Sync?
  318. .sp
  319. Security over convenience. In Syncthing you have to set up both sides to
  320. connect two devices. An attacker can’t do much with a stolen device ID, because
  321. you have to add the device on the other side too. You have better control
  322. where your files are transferred.
  323. .sp
  324. This is an area that we are working to improve in the long term.
  325. .SS Why do I get “Host check error” in the GUI/API?
  326. .sp
  327. Since version 0.14.6 Syncthing does an extra security check when the GUI/API
  328. is bound to localhost \- namely that the browser is talking to localhost.
  329. This protects against most forms of \X'tty: link https://en.wikipedia.org/wiki/DNS_rebinding'\fI\%DNS rebinding attack\fP <\fBhttps://en.wikipedia.org/wiki/DNS_rebinding\fP>\X'tty: link' against the GUI.
  330. .sp
  331. To pass this test, ensure that you are accessing the GUI using an URL that
  332. begins with \fBhttp://localhost\fP, \fBhttp://127.0.0.1\fP or \fBhttp://[::1]\fP\&. HTTPS
  333. is fine too, of course.
  334. .sp
  335. If you are using a proxy in front of Syncthing you may need to disable this
  336. check, after ensuring that the proxy provides sufficient authentication to
  337. protect against unauthorized access. Either:
  338. .INDENT 0.0
  339. .IP \(bu 2
  340. Make sure the proxy sets a \fBHost\fP header containing \fBlocalhost\fP, or
  341. .IP \(bu 2
  342. Set \fI\%gui.insecureSkipHostcheck\fP in the advanced settings, or
  343. .IP \(bu 2
  344. Bind the GUI/API to a non\-localhost listen port.
  345. .UNINDENT
  346. .sp
  347. In all cases, username/password authentication and HTTPS should be used.
  348. .SS My Syncthing database is corrupt
  349. .sp
  350. This is almost always a result of bad RAM, storage device or other hardware.
  351. When the index database is found to be corrupt Syncthing cannot operate and will
  352. note this in the logs and exit. To overcome this delete the \fI\%database
  353. folder\fP inside Syncthing’s data directory and re\-start
  354. Syncthing. It will then need to perform a full re\-hashing of all shared
  355. folders. You should check your system in case the underlying cause is indeed
  356. faulty hardware which may put the system at risk of further data loss.
  357. .SS Why do I see Syncthing twice in task manager?
  358. .sp
  359. One process manages the other, to capture logs and manage restarts. This
  360. makes it easier to handle upgrades from within Syncthing itself, and also
  361. ensures that we get a nice log file to help us narrow down the cause for
  362. crashes and other bugs.
  363. .SS How can I view the history of changes?
  364. .sp
  365. The web GUI contains a \fBRecent Changes\fP button under the device list which
  366. displays changes since the last (re)start of Syncthing. With the \fB\-\-audit\fP
  367. option you can enable a persistent, detailed log of changes and most
  368. activities, which contains a JSON\-formatted sequence of events in the
  369. \fB~/.local/state/syncthing/audit\-_date_\-_time_.log\fP file.
  370. .SS Does the audit log contain every change?
  371. .sp
  372. The audit log (and the \fBRecent Changes\fP window) sees the changes that your
  373. Syncthing sees. When Syncthing is continuously connected it usually sees every change
  374. happening immediately and thus knows which node initiated the change.
  375. When topology gets complex or when your node reconnects after some time offline,
  376. Syncthing synchronises with its neighbours: It gets the latest synchronised state
  377. from the neighbour, which is the \fIresult\fP of all the changes between the last
  378. known state (before disconnect or network delay) and the current state at the
  379. neighbour, and if there were updates, deletes, creates, conflicts, which were
  380. overlapping we only see the \fIlatest change\fP for a given file or directory (and
  381. the node where that latest change occurred). When we connect to multiple neighbours
  382. Syncthing decides which neighbour has the latest state, or if the states conflict
  383. it initiates the conflict resolution procedure, which in the end results in a consistent
  384. up\-to\-date state with all the neighbours.
  385. .SS Why does Syncthing connect to this unknown/suspicious address?
  386. .sp
  387. If you see outgoing connections to odd and unexpected addresses these are
  388. most likely connections to \fI\%relay servers\fP\&. Relay servers
  389. are run by volunteers all over the world. They usually listen on ports 443 or
  390. 22067, though this is controlled by the user running it. You can compare the
  391. address you are concerned about with \X'tty: link https://relays.syncthing.net'\fI\%the current list of active relays\fP <\fBhttps://relays.syncthing.net\fP>\X'tty: link'\&. Relays do not and can not see the data
  392. transmitted via them.
  393. .SS I am seeing the error message “folder marker missing”. What do I do?
  394. .sp
  395. Syncthing uses a specific marker usually called \fB\&.stfolder\fP to determine whether
  396. a folder is healthy. This is a safety check to ensure that your folder is properly
  397. readable and present on disk. For example, if you remove a USB drive from your computer
  398. or unmount a filesystem, then syncthing must know whether you have really deleted \fBall\fP of
  399. your files. Therefore, syncthing always checks that the \fB\&.stfolder\fP is present.
  400. .sp
  401. When this error appears, syncthing assumes that the folder has encountered some type of error
  402. and will stop syncing it until the \fB\&.stfolder\fP reappears. Once that happens, all changes made
  403. to the folder locally will be synced (i.e. missing files will be considered deletions).
  404. .INDENT 0.0
  405. .IP \(bu 2
  406. If you get this error message, check the folder in question on your storage. If you have
  407. unmounted the folder (or a parent of it), you must remount it for syncthing to resume syncing
  408. this folder.
  409. .IP \(bu 2
  410. If you have moved the folder, you must either move it back to its original location, or remove the
  411. folder from within the syncthing UI and re\-add it at its new location.
  412. .IP \(bu 2
  413. If the folder is present on disk, with all of its children files and directories, but the \fB\&.stfolder\fP
  414. is still missing:
  415. .sp
  416. It is possible that a file cleaning software has removed the \fB\&.stfolder\fP\&. Some software
  417. removes empty folders, and the \fB\&.stfolder\fP is often empty. This happens particularly often on Android.
  418. To remediate, recreate the \fB\&.stfolder\fP and add a dummy file in it, or add an exception to your
  419. cleaning software.
  420. .UNINDENT
  421. .sp
  422. If you are still unsure what has happened, you can remove the folder from within the syncthing UI and re\-add it
  423. at the same location. This causes syncthing to attempt an automatic re\-creation of the \fB\&.stfolder\fP\&. Next,
  424. it will also reset the database state of this folder. It will be considered a “new” folder, meaning that its files
  425. will be merged with files from remote devices.
  426. .sp
  427. Also see the \fI\%marker FAQ\fP for more information about the folder marker.
  428. .SS Why do my Windows computers always connect through a relay?
  429. .sp
  430. When connecting to a new network, Windows by default sets its profile to
  431. “Public”. While being more secure, this setting commonly prevents applications
  432. like Syncthing from being able to establish direct connections with the device
  433. in question, forcing it to connect through a relay. If you would rather connect
  434. your devices directly, please follow \X'tty: link https://support.microsoft.com/windows/essential-network-settings-and-tasks-in-windows-f21a9bbc-c582-55cd-35e0-73431160a1b9#bkmk_network_profile'\fI\%the official Microsoft instructions on how
  435. to change the network profile to “Private”\fP <\fBhttps://support.microsoft.com/windows/essential-network-settings-and-tasks-in-windows-f21a9bbc-c582-55cd-35e0-73431160a1b9#bkmk_network_profile\fP>\X'tty: link'\&.
  436. .SH USAGE
  437. .SS What if there is a conflict?
  438. .sp
  439. \fBSEE ALSO:\fP
  440. .INDENT 0.0
  441. .INDENT 3.5
  442. \fI\%Conflicting Changes\fP
  443. .UNINDENT
  444. .UNINDENT
  445. .SS How do I serve a folder from a read only filesystem?
  446. .sp
  447. Syncthing requires a “folder marker” to indicate that the folder is present
  448. and healthy. By default this is a directory called \fB\&.stfolder\fP that is
  449. created by Syncthing when the folder is added. If this folder can’t be
  450. created (you are serving files from a CD or something) you can instead set
  451. the advanced config \fBMarker Name\fP to the name of some file or folder that
  452. you know will always exist in the folder.
  453. .SS I really hate the \fB\&.stfolder\fP directory, can I remove it?
  454. .sp
  455. See the previous question.
  456. .SS Am I able to nest shared folders in Syncthing?
  457. .sp
  458. Sharing a folder that is within an already shared folder is possible, but it has
  459. its caveats. What you must absolutely avoid are circular shares. This is just
  460. one example, there may be other undesired effects. Nesting shared folders is not
  461. supported, recommended or coded for, but it can be done successfully when you
  462. know what you’re doing \- you have been warned.
  463. .SS How do I rename/move a synced folder?
  464. .sp
  465. Syncthing doesn’t have a direct way to do this, as it’s potentially
  466. dangerous to do so if you’re not careful \- it may result in data loss if
  467. something goes wrong during the move and is synchronized to your other
  468. devices.
  469. .sp
  470. The easy way to rename or move a synced folder on the local system is to
  471. remove the folder in the Syncthing UI, move it on disk, then re\-add it using
  472. the new path.
  473. .sp
  474. It’s important to do this when the folder is already in sync between your
  475. devices, as it is otherwise unpredictable which changes will “win” after the
  476. move. Changes made on other devices may be overwritten, or changes made
  477. locally may be overwritten by those on other devices.
  478. .sp
  479. An alternative way is to shut down Syncthing, move the folder on disk (including
  480. the \fB\&.stfolder\fP marker), edit the path directly in \fBconfig.xml\fP in the
  481. configuration folder (see \fI\%Syncthing Configuration\fP) and then start Syncthing again.
  482. .SS How do I configure multiple users on a single machine?
  483. .sp
  484. Each user should run their own Syncthing instance. Be aware that you might need
  485. to configure listening ports such that they do not overlap (see \fI\%Syncthing Configuration\fP).
  486. .SS Does Syncthing support syncing between folders on the same system?
  487. .sp
  488. No. Syncthing is not designed to sync locally and the overhead involved in
  489. doing so using Syncthing’s method would be wasteful. There are better
  490. programs to achieve this such as \X'tty: link https://rsync.samba.org/'\fI\%rsync\fP <\fBhttps://rsync.samba.org/\fP>\X'tty: link' or
  491. \X'tty: link https://www.cis.upenn.edu/~bcpierce/unison'\fI\%Unison\fP <\fBhttps://www.cis.upenn.edu/~bcpierce/unison\fP>\X'tty: link'\&.
  492. .SS When I do have two distinct Syncthing\-managed folders on two hosts, how does Syncthing handle moving files between them?
  493. .sp
  494. Syncthing does not specially handle this case, and most files will most likely get
  495. re\-downloaded.
  496. .sp
  497. In detail, the behavior depends on the scan order. If you have folders A and B,
  498. and move files from A to B, if A gets scanned first, it will announce the removal of
  499. the files to others who will then remove the files. As you rescan B, B will
  500. announce the addition of new files, and other peers will have nowhere to get
  501. them from apart from re\-downloading them.
  502. .sp
  503. If B gets rescanned first, B will announce additions first, and remote
  504. peers will then reconstruct the files (not rename, more like copying block by
  505. block) from A, and then as A gets rescanned, it will remove the files from A.
  506. .sp
  507. A workaround would be to copy first from A to B, rescan B, wait for B to
  508. copy the files on the remote side, and then delete from A.
  509. .SS Can I help initial sync by copying files manually?
  510. .sp
  511. If you have a large folder that you want to keep in sync over a not\-so\-fast network, and you have the possibility to move all files to the remote device in a faster manner, here is a procedure to follow:
  512. .INDENT 0.0
  513. .IP \(bu 2
  514. Create the folder on the local device, but don’t share it with the remote device yet.
  515. .IP \(bu 2
  516. Copy the files from the local device to the remote device using regular file copy. If this takes a long time (perhaps requiring travelling there physically), it may be a good idea to make sure that the files on the local device are not updated while you are doing this.
  517. .IP \(bu 2
  518. Create the folder on the remote device, and copy the Folder ID from the folder on the local device, as we want the folders to be considered the same. Then wait until scanning the folder is done.
  519. .IP \(bu 2
  520. Now share the folder with the other device, on both sides. Syncthing will exchange file information, updating the database, but existing files will not be transferred. This may still take a while initially, be patient and wait until it settled.
  521. .UNINDENT
  522. .SS Is Syncthing my ideal backup application?
  523. .sp
  524. No. Syncthing is not a great backup application because all changes to your
  525. files (modifications, deletions, etc.) will be propagated to all your
  526. devices. You can enable versioning, but we encourage you to use other tools
  527. to keep your data safe from your (or our) mistakes.
  528. .SS How can I exclude files with brackets (\fB[]\fP) in the name?
  529. .sp
  530. The patterns in .stignore are glob patterns, where brackets are used to
  531. denote character ranges. That is, the pattern \fBq[abc]x\fP will match the
  532. files \fBqax\fP, \fBqbx\fP and \fBqcx\fP\&.
  533. .sp
  534. To match an actual file \fIcalled\fP \fBq[abc]x\fP the pattern needs to “escape”
  535. the brackets, like so: \fBq\e[abc\e]x\fP\&.
  536. .sp
  537. On Windows, escaping special characters is not supported as the \fB\e\fP
  538. character is used as a path separator.
  539. .SS How do I access the web GUI from another computer?
  540. .sp
  541. The default listening address is 127.0.0.1:8384, so you can only access the GUI
  542. from the same machine. This is for security reasons. To access it from another
  543. computer, change the \fBGUI listen address\fP option in the web GUI from
  544. \fB127.0.0.1:8384\fP to \fB0.0.0.0:8384\fP, or change the \fBconfig.xml\fP:
  545. .INDENT 0.0
  546. .INDENT 3.5
  547. .sp
  548. .EX
  549. <gui enabled=\(dqtrue\(dq tls=\(dqfalse\(dq>
  550. <address>127.0.0.1:8384</address>
  551. .EE
  552. .UNINDENT
  553. .UNINDENT
  554. .sp
  555. to
  556. .INDENT 0.0
  557. .INDENT 3.5
  558. .sp
  559. .EX
  560. <gui enabled=\(dqtrue\(dq tls=\(dqtrue\(dq>
  561. <address>0.0.0.0:8384</address>
  562. .EE
  563. .UNINDENT
  564. .UNINDENT
  565. .sp
  566. Then the GUI is accessible from everywhere. There is no filtering based on
  567. e.g. source address (use a firewall for that). You should set a password and
  568. enable HTTPS with this configuration. You can do this from inside the GUI.
  569. .sp
  570. If both your computers are Unix\-like (Linux, Mac, etc.) you can also leave the
  571. GUI settings at default and use an SSH port forward to access it. For example,
  572. .INDENT 0.0
  573. .INDENT 3.5
  574. .sp
  575. .EX
  576. $ ssh \-L 9090:127.0.0.1:8384 [email protected]
  577. .EE
  578. .UNINDENT
  579. .UNINDENT
  580. .sp
  581. will log you into \fBothercomputer.example.com\fP, and present the \fIremote\fP
  582. Syncthing GUI on \X'tty: link http://localhost:9090'\fI\%http://localhost:9090\fP\X'tty: link' on your \fIlocal\fP computer.
  583. .sp
  584. If you only want to access the remote GUI and don’t want the terminal session,
  585. use this example:
  586. .INDENT 0.0
  587. .INDENT 3.5
  588. .sp
  589. .EX
  590. $ ssh \-N \-L 9090:127.0.0.1:8384 [email protected]
  591. .EE
  592. .UNINDENT
  593. .UNINDENT
  594. .sp
  595. If only your remote computer is Unix\-like, you can still access it with SSH from
  596. Windows. Under Windows 10 or later you can use the same \fBssh\fP command if you
  597. \X'tty: link https://learn.microsoft.com/windows-server/administration/openssh/openssh_install_firstuse'\fI\%install the OpenSSH Client\fP <\fBhttps://learn.microsoft.com/windows-server/administration/openssh/openssh_install_firstuse\fP>\X'tty: link'\&.
  598. .SS I don’t like the GUI or the theme. Can it be changed?
  599. .sp
  600. You can change the theme in the settings. Syncthing ships with other themes
  601. than the default.
  602. .sp
  603. If you want a custom theme or a completely different GUI, you can add your
  604. own.
  605. By default, Syncthing will look for a directory \fBgui\fP inside the Syncthing
  606. home folder. To change the directory to look for themes, you need to set the
  607. STGUIASSETS environment variable. To get the concrete directory, run
  608. syncthing with the \fB\-\-paths\fP parameter. It will print all the relevant paths,
  609. including the “GUI override directory”.
  610. .sp
  611. To add e.g. a red theme, you can create the file \fBred/assets/css/theme.css\fP
  612. inside the GUI override directory to override the default CSS styles.
  613. .sp
  614. To create a whole new GUI, you should checkout the files at
  615. \X'tty: link https://github.com/syncthing/syncthing/tree/main/gui/default'\fI\%https://github.com/syncthing/syncthing/tree/main/gui/default\fP\X'tty: link'
  616. to get an idea how to do that.
  617. .SS How do I upgrade Syncthing?
  618. .sp
  619. If you use a package manager such as Debian’s apt\-get, you should upgrade
  620. using the package manager. If you use the binary packages linked from
  621. Syncthing.net, you can use Syncthing’s built\-in automatic upgrade functionality.
  622. .INDENT 0.0
  623. .IP \(bu 2
  624. If automatic upgrades is enabled (which is the default), Syncthing will
  625. upgrade itself automatically within 24 hours of a new release.
  626. .IP \(bu 2
  627. The upgrade button appears in the web GUI when a new version has been
  628. released. Pressing it will perform an upgrade.
  629. .IP \(bu 2
  630. To force an upgrade from the command line, run \fBsyncthing \-\-upgrade\fP\&.
  631. .UNINDENT
  632. .sp
  633. Note that your system should have CA certificates installed which allows a
  634. secure connection to GitHub (e.g. FreeBSD requires \fBsudo pkg install
  635. ca_root_nss\fP). If \fBcurl\fP or \fBwget\fP works with normal HTTPS sites, then
  636. so should Syncthing.
  637. .SS Where do I find the latest release?
  638. .sp
  639. We release new versions through GitHub. The latest release is always found
  640. \X'tty: link https://github.com/syncthing/syncthing/releases/latest'\fI\%on the release page\fP <\fBhttps://github.com/syncthing/syncthing/releases/latest\fP>\X'tty: link'\&. Unfortunately
  641. GitHub does not provide a single URL to automatically download the latest
  642. version. We suggest to use the \X'tty: link https://api.github.com/repos/syncthing/syncthing/releases/latest'\fI\%GitHub API\fP <\fBhttps://api.github.com/repos/syncthing/syncthing/releases/latest\fP>\X'tty: link' and parsing
  643. the JSON response.
  644. .SS How do I run Syncthing as a daemon process on Linux?
  645. .sp
  646. If you’re using systemd, runit, or upstart, we ship \X'tty: link https://github.com/syncthing/syncthing/tree/main/etc'\fI\%example configurations\fP <\fBhttps://github.com/syncthing/syncthing/tree/main/etc\fP>\X'tty: link'\&.
  647. .sp
  648. If however you’re not using one of these tools, you have a couple of options.
  649. If your system has a tool called \fBstart\-stop\-daemon\fP installed (that’s the name
  650. of the command, not the package), look into the local documentation for that, it
  651. will almost certainly cover 100% of what you want to do. If you don’t have
  652. \fBstart\-stop\-daemon\fP, there are a bunch of other software packages you could use
  653. to do this. The most well known is called daemontools, and can be found in the
  654. standard package repositories for almost every modern Linux distribution.
  655. Other popular tools with similar functionality include S6 and the aforementioned
  656. runit.
  657. .SS How do I increase the inotify limit to get my filesystem watcher to work?
  658. .sp
  659. You are probably reading this because you encountered the following error with
  660. the filesystem watcher on linux:
  661. .INDENT 0.0
  662. .INDENT 3.5
  663. Failed to start filesystem watcher for folder yourLabel (yourID): failed to
  664. set up inotify handler. Please increase inotify limits, see \X'tty: link https://docs.syncthing.net/users/faq.html#inotify-limits'\fI\%https://docs.syncthing.net/users/faq.html#inotify\-limits\fP\X'tty: link'
  665. .UNINDENT
  666. .UNINDENT
  667. .sp
  668. Linux typically restricts the number of watches per user (usually 8192). If
  669. you have many directories, you will need to adjust that number.
  670. .sp
  671. On many Linux distributions you can run the following to fix it:
  672. .INDENT 0.0
  673. .INDENT 3.5
  674. .sp
  675. .EX
  676. echo \(dqfs.inotify.max_user_watches=204800\(dq | sudo tee \-a /etc/sysctl.conf
  677. .EE
  678. .UNINDENT
  679. .UNINDENT
  680. .sp
  681. On Arch Linux and potentially others it is preferred to write this line into a
  682. separate file, i.e. you should run:
  683. .INDENT 0.0
  684. .INDENT 3.5
  685. .sp
  686. .EX
  687. echo \(dqfs.inotify.max_user_watches=204800\(dq | sudo tee \-a /etc/sysctl.d/90\-override.conf
  688. .EE
  689. .UNINDENT
  690. .UNINDENT
  691. .sp
  692. This only takes effect after a reboot. To adjust the limit immediately, run:
  693. .INDENT 0.0
  694. .INDENT 3.5
  695. .sp
  696. .EX
  697. echo 204800 | sudo tee /proc/sys/fs/inotify/max_user_watches
  698. .EE
  699. .UNINDENT
  700. .UNINDENT
  701. .SS How do I reset the GUI password?
  702. .sp
  703. If you’ve forgotten / lost the GUI password, you can reset it using the
  704. \fI\%\-\-gui\-password\fP (and possibly \fI\%\-\-gui\-user\fP) options to the
  705. \fBsyncthing generate\fP subcommand. This should be done while Syncthing is not
  706. running.
  707. .INDENT 0.0
  708. .IP 1. 3
  709. Stop Syncthing: \fBsyncthing cli operations shutdown\fP
  710. .IP 2. 3
  711. \fBsyncthing generate \-\-gui\-password=myNewPassword \-\-gui\-user=newUserName\fP
  712. .IP 3. 3
  713. Restart Syncthing as usual.
  714. .UNINDENT
  715. .sp
  716. \fIAlternatively, in step 2\fP, you can manually delete the \fI\%<user>\fP and \fI\%<password>\fP XML tags from the
  717. \fB<gui>\fP block in file \fBconfig.xml\fP\&. The location of the file depends on the
  718. OS and is described in the \fI\%configuration documentation\fP\&.
  719. .sp
  720. For example, the two emphasized lines below would be removed from the file.
  721. .INDENT 0.0
  722. .INDENT 3.5
  723. .sp
  724. .EX
  725. <gui enabled=\(dqtrue\(dq tls=\(dqfalse\(dq debugging=\(dqfalse\(dq>
  726. <address>127.0.0.1:8384</address>
  727. <user>syncguy</user>
  728. <password>$2a$10$s9wWHOQe...Cq7GPye69</password>
  729. <apikey>9RCKohqCAyrj5RjpyZdR2wXmQ9PyQFeN</apikey>
  730. <theme>default</theme>
  731. </gui>
  732. .EE
  733. .UNINDENT
  734. .UNINDENT
  735. .SH AUTHOR
  736. The Syncthing Authors
  737. .SH COPYRIGHT
  738. 2014-2019, The Syncthing Authors
  739. .\" Generated by docutils manpage writer.
  740. .