Skip to content

Commit 49b0409

Browse files
CyberSecDefclaude
andcommitted
ship.sh: show per-file rsync progress; document additive (non-mirror) sync
Add -h --partial --progress to the prod rsync so the long multi-GB docker tarball transfer shows live per-file progress (bytes/%/speed) and resumes instead of restarting if interrupted. Also document at the call site that the sync is additive (no --delete): files removed locally are not pruned from prod. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent d214da2 commit 49b0409

1 file changed

Lines changed: 12 additions & 2 deletions

File tree

cyber.trackr.live/bin/ship.sh

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,17 @@
3737
# the prod host. -a preserves
3838
# perms / mtimes; -v prints each
3939
# transferred file; -z compresses
40-
# on the wire.
40+
# on the wire; -h prints sizes
41+
# human-readable; --progress shows
42+
# per-file transfer progress (handy
43+
# for the multi-GB docker tarball);
44+
# --partial keeps a partially-sent
45+
# file so an interrupted transfer
46+
# resumes instead of restarting.
47+
# NOTE: no --delete — this is an
48+
# additive sync, not a mirror, so
49+
# files removed locally are NOT
50+
# pruned from prod (they orphan).
4151
#
4252
# After this finishes, SSH to prod and run ./bin/deploy.sh to clear
4353
# caches, rebuild the search index, and ping IndexNow.
@@ -85,7 +95,7 @@ echo "[6/7] Freezing changelog from git log …"
8595

8696
echo
8797
echo "[7/7] Rsyncing to prod (--exclude .env) …"
88-
rsync -avz \
98+
rsync -avz -h --partial --progress \
8999
--exclude '.env' \
90100
/home/rweber/Git/Cyber.Trackr.Live/cyber.trackr.live/ \
91101
dh_t7zn6y@vps30818.dreamhostps.com:/home/dh_t7zn6y/cyber.trackr.live/

0 commit comments

Comments
 (0)