Setting Up Syncthing for Directory Sync


Setting Up Syncthing

Syncthing is an open-source continuous file synchronization tool that allows you to sync directories between devices without relying on cloud services like Google Drive or iCloud.

Installation

Installing Syncthing by using Homebrew on both devices:

brew install syncthing

Starting Syncthing

Start Syncthing service:

brew services start syncthing

Access the web UI at http://localhost:8384

Configuration Steps

1. Add Remote Device

  • Navigate to Actions → Show ID
  • Copy the Device ID
  • On the target device, go to Actions → Add Remote Device
  • Add the copied Device ID and give it a name

2. Configure Folder Sync

  • Click “Add Folder”
  • Select the directory you want to sync
  • Under “Sharing” tab, select the device you want to share with
  • Accept the folder share request on the target device
  • Add ignore patterns if needed (e.g., *.tmp, .DS_Store) in the .stignore file or via the UI

3. Verify Sync

  • Create a test file in the synced directory
  • Check if it appears on the other device
  • Both devices should show “Up to Date” status



Enjoy Reading This Article?

Here are some more articles you might like to read next:

  • Don’t Repeat Yourself with YAML anchor
  • Monitor SNMP ด้วย CloudProxy-vROps
  • การสร้าง Root HTTPProxy บน Contour
  • Crontab but Kubernetes
  • Automate your Proxmox with Packer