Where Does Syncthing Store Config and Database?
Syncthing keeps config.xml plus keys and the index database in one home folder. The default moved to the state folder on recent Unix builds.
Last updated
The Syncthing home folder holds config.xml, cert.pem, key.pem and the index database. Current Unix builds default to the XDG state location.
Older Linux installs may still use the config folder path. Check Actions then Logs then Config Search Path in the web GUI if paths do not match.
Where Syncthing stores this, by platform
/home/<user>/.local/state/syncthing/config.xml
Current default on Linux since v1.27. <user> is the Linux username. Honors XDG_STATE_HOME. The index database lives in the same folder.
/Users/<user>/Library/Application Support/Syncthing/config.xml
Default on macOS. <user> is the macOS username. Keys and index database sit beside config.xml. Stop Syncthing before hand editing.
C:\Users\<user>\AppData\Local\Syncthing\config.xml
Default on Windows. <user> is the Windows login name. The value of LOCALAPPDATA sets the root. Keys and index database sit in the same folder.
/home/<user>/.config/syncthing/config.xml
Legacy default on Linux before v1.27. <user> is the Linux username. Upgraded installs often stay here. Do not merge old and new folders by hand.
Frequently asked questions
How do I move the config and database?
Stop Syncthing, move the whole home folder, then start with the config option or STCONFDIR pointed at the new path. Moving single files breaks key and index links.
Can I edit config.xml directly?
Yes, but stop Syncthing first and keep a backup. Most settings are safer to change in the web GUI at 127.0.0.1:8384, which validates input.
Notice an outdated path? Let us know.