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
- 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
- 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>.lockfrom a previous crash.