Sync files across all computers using Syncthing
These are my notes from this Youtube tutorial. Well worth watching!
Syncthing is a continuous file synch program. It synchronizes files between multiple computers in real time. My home setup is a star layout; that is, I have multiple devices that exchange data with a central home server.
Example: Setup with 3 computers - a server, desktop, and laptop - with each computer having Syncthing installed.
After travelling and working with my laptop, I return home and - when my laptop connects to the LAN - any file changes are synced with the server, which in turn syncs with the desktop.
For installing the latest stable package for Debian/Ubuntu, see apt.syncthing.net. For Arch, simply
pacman -S syncthing.
On each computer, setup a systemd unit to automate the startup.
Add the systemd service ...
$ wget https://raw.githubusercontent.com/syncthing/syncthing/main/etc/linux-systemd/system/syncthing%40.service $ sudo chown root: syncthing@.service $ sudo mv syncthing@.service /etc/systemd/system $ sudo systemctl daemon-reload
Enable and start Syncthing for your username ...
$ sudo systemctl enable --now syncthing@<username> $ systemctl status syncthing@<username>
A default folder for synchronization -
~/Sync - is created.
On the local device, access Syncthing's GUI via the following URL: http://127.0.0.1:8384/
Remote host GUI
By default, we can't connect to the GUI running on a remote computer (program is only listening for connections from
Allow connections to the GUI from network devices by logging into the remote computer, then editing
~/.config/syncthing/config.xml. Change the line ...
<gui enabled="true" tls="false" debugging="false"> <address>127.0.0.1:8384</address>
... to ...
<gui enabled="true" tls="false" debugging="false"> <address>0.0.0.0:8384</address>
... and restart
sudo systemctl restart syncthing@<username>.
Syncthing GUI on remote host is now accessible at port
<ip_address>:8384. Go to
Settings-GUI and add a username and password to the web interface.
On the remote device, go to
Actions->Show ID, copy the string, and on each local device click on
Add remote device and paste string in
Device ID. A notification appears on remote device to add new device. Click OK and configure.
See this video tutorial for adding a folder for synchronization.
Syncthing on Android
Install on phone: Google Play
Add remote device:
- On the remote device GUI ... go to
Actions->Show IDto display QR code
- On the phone ... go to
Add Device, click QR icon for
Device IDto launch camera app and scan remote device's QR code
- On the remote device ... click accept to add new device, set config options
Share phone folder (example: Camera folder at
- On the phone ... click on folder, enable file sharing to the remote device
- On the remote device ... click accept to add new folder, set config options
« Earlier: Remotely unlock a LUKS-encrypted Linux server using Dropbear