Got multiple devices and frustrated to sync files across all of them? Need no worry syncthing is here!

Syncthing uses magic to uptodate your files and content across all your devices. All you need to do is set it up.

Installation

just download from official website: syncthing.net or install from your distro package manager. e.g pacman -S syncthing for archlinux

Setting it up

use syncthing --help to check all commands start syncthing server

syncthing serve

by default it will serve webapp on port localhost:8384

Explore gui

  • add a folder make sure to give same folder id across all devices
  • add devices using devices id or QR Scanner
  • Sync All

Thats all

Set up systemd service

Although distro packages for Syncthing already provide the systemd user service but for sake of extra info you should create something like this.

This to create systemd service to make this run in background all the time. Also be sure to run loginctl enable-linger <username> command to let this service run even after the user has logged out. in ~/.config/systemd/user/ add syncthing.service file

[Unit]
Description=Syncthing 
 
[Service]
ExecStart=/usr/bin/syncthing serve
 
[Install]
WantedBy=default.target

Start the service systemctl --user enable synthing.service systemctl --user start synthing.service

By default its start at port localhost:8384 check with your browser.

You will see ~/sync folder already added there. You can edit it.

There is important thing to remember is that for syncing same folder across different devices make sure to copy pase same Folder ID in all of syncthing instances. Otherwise it will not work. Also in Advanced Tab select the Folder Type to Send & Receive If you want to update the new changes from all ends to all ends.