TechTalk Community

Advanced Folder Syncing Techniques

Posted by Alexander on Sep 8, 2025 • 45 replies
Alexander
Alexander • Sep 8, 2025 • #1

Hey everyone, I'm looking to implement a more robust folder syncing system for our enterprise environment. The usual one‑way sync works, but we need:

  • Bidirectional syncing with conflict resolution based on timestamps.
  • Selective sync for sub‑folders based on user roles.
  • Real‑time change detection without polling.

Has anyone built something similar or can recommend tools/libraries? Open‑source options are preferred.

Maria
Maria • Sep 9, 2025 • #2

We tried Syncthing with custom scripts for role‑based filtering. It has real‑time sync via inotify on Linux and can be configured for bidirectional sync. For conflict resolution, you can use its override feature combined with a git‑like merge.

Here's a quick example of a script that moves conflicted files to a conflicts/ folder:

#!/bin/bash
if [[ $1 == *"conflict"* ]]; then
  mv "$1" /sync/conflicts/
fi

Hope that helps!

Jun
Jun • Sep 10, 2025 • #3

If you’re on Windows, OneDrive for Business supports file‑on‑demand and selective sync per user group via Azure AD. It also uses a change‑journal for real‑time updates.

For more granular control, combine it with PowerShell scripts that enforce role‑based folder access.

Post a Reply