Rsync echo/log audit pass — rsync.sh + Manual
Fix log→echo on success status line in summary block. Add output tiers section to Manual-Rsync.md. No setup banner (script was already clean); all section headers and transfer identity block correctly remain echo.
This commit is contained in:
@@ -680,6 +680,19 @@ HOST2_SSH_KEY="/root/.ssh/jayred365_rsync_automation"
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
## ━━━ OUTPUT TIERS ━━━
|
||||||
|
|
||||||
|
Without `--log`, each run shows: section headers (Pre-flight, Transfer, Stop/Start
|
||||||
|
Containers), the transfer identity block (source, remote, profile, identity), a
|
||||||
|
progress indicator while rsync is running, and a summary block with duration,
|
||||||
|
bytes transferred, and status. Warnings and errors are always visible.
|
||||||
|
|
||||||
|
With `--log`, every decision is shown — pre-flight check results, profile resolution,
|
||||||
|
per-container stop/start state, retry details, and bandwidth log confirmation.
|
||||||
|
Use for first-run validation or when investigating unexpected behavior.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
## ━━━ FLAG REFERENCE ━━━
|
## ━━━ FLAG REFERENCE ━━━
|
||||||
|
|
||||||
All flags work on `rsync.sh` and all orchestrators.
|
All flags work on `rsync.sh` and all orchestrators.
|
||||||
|
|||||||
+1
-1
@@ -435,7 +435,7 @@ echo "$ICON_TIME Duration: $(format_duration $DURATION)"
|
|||||||
if [[ "$DRY_RUN" == true ]]; then
|
if [[ "$DRY_RUN" == true ]]; then
|
||||||
warn "DRY RUN — no changes made"
|
warn "DRY RUN — no changes made"
|
||||||
elif [[ "$RSYNC_SUCCESS" == true ]]; then
|
elif [[ "$RSYNC_SUCCESS" == true ]]; then
|
||||||
log "$ICON_DONE Status: $ICON_SUCCESS DONE"
|
echo "$ICON_DONE Status: $ICON_SUCCESS DONE"
|
||||||
else
|
else
|
||||||
echo "$ICON_ERROR Status: FAILED after $RETRY_COUNT attempts"
|
echo "$ICON_ERROR Status: FAILED after $RETRY_COUNT attempts"
|
||||||
notify "Rsync FAILED — $DIRECTORY ($PROFILE_NAME) after $RETRY_COUNT attempts on $(hostname)" \
|
notify "Rsync FAILED — $DIRECTORY ($PROFILE_NAME) after $RETRY_COUNT attempts on $(hostname)" \
|
||||||
|
|||||||
Reference in New Issue
Block a user