← back to Wallco Ai
deploy-kamatera: image sync is incremental + non-destructive
9829d20eed27a7b66c3079b3e3a9272eed744896 · 2026-05-19 12:50:46 -0700 · SteveStudio2
data/generated is append-only (unique-per-gen filenames). Switch step 2b
from full --delete mirror to --ignore-existing: only new PNGs transfer, so
the stage is fast enough to actually run, and pruning local images for disk
space can no longer wipe them off prod.
Files touched
Diff
commit 9829d20eed27a7b66c3079b3e3a9272eed744896
Author: SteveStudio2 <steve@designerwallcoverings.com>
Date: Tue May 19 12:50:46 2026 -0700
deploy-kamatera: image sync is incremental + non-destructive
data/generated is append-only (unique-per-gen filenames). Switch step 2b
from full --delete mirror to --ignore-existing: only new PNGs transfer, so
the stage is fast enough to actually run, and pruning local images for disk
space can no longer wipe them off prod.
---
deploy-kamatera.sh | 16 ++++++++++++----
1 file changed, 12 insertions(+), 4 deletions(-)
diff --git a/deploy-kamatera.sh b/deploy-kamatera.sh
index c8b4bb4..a62ee84 100755
--- a/deploy-kamatera.sh
+++ b/deploy-kamatera.sh
@@ -49,10 +49,18 @@ rsync -az --delete \
--exclude='db/' \
"$LOCAL_DIR/" "$REMOTE:$REMOTE_DIR/"
-# 3. Rsync design images (the generated PNGs we DO want on prod)
-echo "[2b/6] rsync generated design images..."
-rsync -az --delete \
- "$LOCAL_DIR/data/generated/" "$REMOTE:$REMOTE_DIR/data/generated/"
+# 3. Rsync design images — the generated PNGs we DO want on prod.
+# APPEND-ONLY store: every PNG filename is unique-per-generation
+# (var_<id>_<hue>_<ts>.png / <ts>_<seed>.png), so files are only ever
+# added, never modified. Therefore:
+# --ignore-existing : transfers ONLY new files → fast, won't be skipped.
+# NO --delete : local data/generated gets pruned for disk space
+# (Mac2 runs ~96% full); --delete would then wipe
+# those same images off prod. Never mirror this dir.
+echo "[2b/6] rsync generated design images (incremental, append-only)..."
+rsync -az --ignore-existing --stats \
+ "$LOCAL_DIR/data/generated/" "$REMOTE:$REMOTE_DIR/data/generated/" \
+ | grep -E 'Number of files(:| transferred)|Total transferred' || true
# 4. npm install on remote
echo "[3/6] npm install..."
← 9b5ec50 refiner_compare: two-machine split — CMP_SHARD/CMP_SHARDS en
·
back to Wallco Ai
·
refiner-compare: add 3rd column — Replicate app render (stab 8c46cbd →