aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Vanbesien <tvanbesi@proton.me>2026-06-05 11:39:09 +0200
committerThomas Vanbesien <tvanbesi@proton.me>2026-06-05 11:39:09 +0200
commit9a0333acf1fe6f6672710ce65cfce2ae9dd866f4 (patch)
tree25be09fdc7921d0eb98774e8661f0fd636f6d7ce
parentf87b35613f82e66b3854747ef6952dedc0674213 (diff)
downloadnet_services-9a0333acf1fe6f6672710ce65cfce2ae9dd866f4.tar.gz
net_services-9a0333acf1fe6f6672710ce65cfce2ae9dd866f4.zip
feat: add tool to find syncthing conflicts
-rwxr-xr-xtools/find_syncthing_conflicts9
1 files changed, 9 insertions, 0 deletions
diff --git a/tools/find_syncthing_conflicts b/tools/find_syncthing_conflicts
new file mode 100755
index 0000000..efdda15
--- /dev/null
+++ b/tools/find_syncthing_conflicts
@@ -0,0 +1,9 @@
+#!/usr/bin/bash
+set -euo pipefail
+
+readarray -t synced_folders_ids < <(syncthing cli config folders list)
+declare -a synced_folders_paths
+for f in "${synced_folders_ids[@]}"; do
+ synced_folders_paths+=("$(syncthing cli config folders "$f" path get)")
+done
+find "${synced_folders_paths[@]/#'~'/$HOME}" -name '*sync-conflict*'