Here’s a step-by-step guide to synchronize a folder between two devices using Syncthing. Syncthing is a powerful, cross-platform tool for syncing folders between devices over Wi-Fi. It’s reliable, secure, and easy to use.
The following use case presents the synchronisation of a “Music” folder between a Macbook Pro and an Android device.
Step 1: Install Syncthing on Both Devices
-
Install Syncthing on Your MacBook Pro
- Visit the official Syncthing website: https://syncthing.net.
- Download the macOS version and follow the installation instructions.
- Once installed, launch Syncthing. The Syncthing GUI will open in your web browser.
-
Install Syncthing on Your Android Device
- Open the Google Play Store on your Android device.
- Search for and install Syncthing or Syncthing-Fork (a popular alternative with additional features).
- Open the app and complete the setup wizard.
Step 2: Set Up SyncThing on Your Devices
-
Set Up Syncthing on Your MacBook
- Open Syncthing in your browser (usually at
http://127.0.0.1:8384). - Add your music folder as a “Shared Folder”:
- Click Add Folder.
- Set the folder path to
~/kDrive/Common documents/music/Music. - Name the folder (e.g.,
Music). - Click Save.
- Open Syncthing in your browser (usually at
-
Set Up Syncthing on Your Android Device
- Open the SyncThing app.
- Go to Folders and tap the + icon to add a new folder.
- Set the folder path to
/storage/3531-3133/Music. - Name the folder (e.g.,
Music). - Save the folder.
Step 3: Connect the Two Devices
-
Find Your Device IDs:
- On the Syncthing interface on your Mac, go to Actions > Show ID. Note your Mac’s device ID.
- On your Android device, open Syncthing, tap the menu, and find the Device ID.
-
Add Devices:
- On your Mac:
- Go to the Syncthing web GUI.
- Click Add Remote Device.
- Enter your Android device’s ID and give it a name.
- Save the configuration.
- On your Android device:
- Tap Devices and click the + icon.
- Enter your Mac’s device ID.
- Save the configuration.
- On your Mac:
-
Share the Folder:
- On the Syncthing web GUI on your Mac, edit the
Musicfolder settings. - Check the box to share the folder with your Android device.
- On your Android device, accept the folder share when prompted.
- On the Syncthing web GUI on your Mac, edit the
Step 4: Configure Synchronization
-
Set Sync Preferences on the MacBook
- Open the folder settings in the Syncthing web GUI.
- Configure the folder as follows:
- Folder Type: Select Send Only (optional) if you want the MacBook to push updates but not receive changes.
-
Set Sync Preferences on Android
- Open the Syncthing app on Android.
- Set the folder to Receive Only (optional) to ensure your Android device only receives updates from the Mac.
Step 5: Start Synchronizing
- Ensure both devices are connected to the same Wi-Fi network.
- Syncthing will start syncing automatically once connected.
- You can monitor the synchronization progress in the Syncthing interface on either device.