Syncthing is an open-source file synchronization client/server application, written in Go, implementing its own, equally free Block Exchange Protocol. All transit communications between syncthing nodes are encrypted, and all nodes are uniquely identified with cryptographic certificates.
Syncthing can be installed with the or the package. This latter includes additional features such as synchronization by inotify, desktop notifications and integration with Nautilus, Nemo and Caja.
After installing, you can either run the syncthing binary manually from a terminal, or start it as a systemd/User instance using the provided
syncthing.service. Alternatively, you can utilize the
syncthing@.service if you require it to run without an active user session.
The systemd services need to be started for a specific user in any case. To do this run
systemctl --user start syncthing.service to start the service or
systemctl --user enable syncthing.service to activate the service.
See Autostart-syncthing with systemd for detailed information on the services.
When syncthing is started, a web interface will be provided by default on localhost port 8384. If you started syncthing manually, it should open the admin page in your browser.
After installation Syncthing already has a proper start-up configuration. You may now add new servers and/or folders by visiting the web interface. For detailed instructions on how to set up a simple network, read Syncthing's getting started.
After a successful first start, it will create the default repository at
~/Sync. You can see this in the web admin interface. On the right is the list of nodes you have added. On the left is the list of repositories, which are folders you can choose to share with other nodes.
To add another node, click "Add Node" underneath the list of nodes. You will be prompted for their Node ID (which can be found on the other machine by clicking
Edit > Show ID) as well as a short name and the address.
If you specify "dynamic" for the address, the syncthing announce server will be used to automatically exchange addresses between nodes. If you want to know more about Node IDs, including the cryptographic implications, you can read the appropriate Syncthing documentation page.
After saving the configuration, you will be prompted to restart the syncthing server, and once restarted, the changes will be applied.
Next, you can either change the configuration of the default node (click its name and then
Edit), or create a new one to share data with. Simply tick the node you wish to share the data with, and they will have permission to access it.
Inotify (inode notify) is a Linux kernel subsystem that acts to extend filesystems to notice changes to the filesystem, and report those changes to applications. Syncthing does not support Inotify yet but there is an official extension module which talks to the Syncthing REST API. The usage of Inotify avoids expensive rescans every minute. The rescan interval of each folder is automatically increased to avoid expensive, regular rescans. Syncthing-inotify can be installed with the
syncthing-inotify.service is started and stopped automatically.
Run a Relay
Since version 0.12 Syncthing has the ability to connect two devices via a relay when there exists no direct path between them. There is a default set of relays that is used out of the box. Relayed connections are encrypted in the usual manner, end to end, so the relay has no more insight into the connection than any other random eavesdropper on the internet . To run a relay install AUR from AUR, then start and enable the
More information about the Syncthing forum.AUR package are available in the
Per default the relay joins the Syncthing relay pool and is publicy available. Rate limiting and other options can be configured via command line flags (check
syncthing-relaysrv -help). To edit the command line flags just create a drop-in snippet for
syncthing-relaysrv.service and replace the
[Service] ExecStart= ExecStart=/usr/bin/syncthing-relaysrv FLAGS
A traffic statistics page is available at port 22070, e.g. http://188.8.131.52:22070/status.
See Debugging syncthing.