sync-status

Installation
SKILL.md

Check Drive sync status

Each shared drive syncs via rclone bisync every 10 minutes. When sync is healthy, files promoted to gdrive/shared/ appear on Google Drive within one cycle. When it is not, files can go missing or stale — so catching problems early matters.

Steps

  1. Show last sync time per drive by inspecting today's log files:
for log in ~/recommand/logs/bisync/*-$(date +%Y%m%d).log; do
  drive=$(basename "$log" | sed "s/-$(date +%Y%m%d).log//")
  last=$(grep -E "^\[" "$log" 2>/dev/null | tail -1 | cut -d']' -f1 | tr -d '[')
  status=$(grep -E "(done|FAILED)" "$log" 2>/dev/null | tail -1)
  echo "$drive: $last — $status"
done
  1. Flag any drive that has not synced in the last 20 minutes — this likely means the background agent has stopped or is stuck. A common cause is a stale lock file at /tmp/rclone-bisync-<drive>.lock from a previous crash.
Installs
9
First Seen
Apr 26, 2026