← back to Dw Photo Capture
Henry sync: treat not-yet-created server archive as OK 0, not FAIL (TK-12162)
d6f19b5c1be89a4000ae07883abc64c0569e12ed · 2026-09-24 16:23:53 -0700 · Steve Abrams
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NR59q54WMPw4GdNgi2z1jM
Files touched
M scripts/sync-vendor-photos-to-henry.sh
Diff
commit d6f19b5c1be89a4000ae07883abc64c0569e12ed
Author: Steve Abrams <steve@designerwallcoverings.com>
Date: Thu Sep 24 16:23:53 2026 -0700
Henry sync: treat not-yet-created server archive as OK 0, not FAIL (TK-12162)
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NR59q54WMPw4GdNgi2z1jM
---
scripts/sync-vendor-photos-to-henry.sh | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/scripts/sync-vendor-photos-to-henry.sh b/scripts/sync-vendor-photos-to-henry.sh
index c4afba4..2a9f048 100755
--- a/scripts/sync-vendor-photos-to-henry.sh
+++ b/scripts/sync-vendor-photos-to-henry.sh
@@ -11,6 +11,10 @@ ts() { date '+%Y-%m-%dT%H:%M:%S%z'; }
if [ ! -d /Volumes/Henry ]; then echo "$(ts) FAIL Henry not mounted" >> "$LOG"; exit 2; fi
mkdir -p "$DEST/vendors" || { echo "$(ts) FAIL mkdir $DEST" >> "$LOG"; exit 3; }
SSH="ssh -o BatchMode=yes -o ConnectTimeout=15"
+if ! $SSH root@45.61.58.125 'test -d /root/public-projects/dwphoto/photos/vendors'; then
+ if $SSH root@45.61.58.125 true; then echo "$(ts) OK 0 photos (nothing archived on server yet)" | tee "$STAMP" >> "$LOG"; exit 0; fi
+ echo "$(ts) FAIL cannot reach server" >> "$LOG"; exit 5
+fi
if ! rsync -a -e "$SSH" "$REMOTE/photos/vendors/" "$DEST/vendors/" >> "$LOG" 2>&1; then
echo "$(ts) FAIL rsync photos" >> "$LOG"; exit 4
fi
← 2653995 Nightly additive rsync of vendor photo archive to Henry + la
·
back to Dw Photo Capture
·
auto-data-snapshot: 2026-09-24T16:24:12 (2 data files) — ops 825c8b2 →