improved progress tracking
This commit is contained in:
@@ -120,7 +120,6 @@ stop_containers() {
|
|||||||
RUNNING_CONTAINERS=()
|
RUNNING_CONTAINERS=()
|
||||||
|
|
||||||
for c in "${CRITICAL_CONTAINER_NAMES[@]}"; do
|
for c in "${CRITICAL_CONTAINER_NAMES[@]}"; do
|
||||||
log "Checking container: $c"
|
|
||||||
|
|
||||||
STATUS=$(ssh -i "$SSH_KEY" root@"$REMOTE_SERVER" \
|
STATUS=$(ssh -i "$SSH_KEY" root@"$REMOTE_SERVER" \
|
||||||
"docker inspect -f '{{.State.Running}}' $c 2>/dev/null" || echo "false")
|
"docker inspect -f '{{.State.Running}}' $c 2>/dev/null" || echo "false")
|
||||||
@@ -195,7 +194,7 @@ get_rsync_opts() {
|
|||||||
|
|
||||||
# ------------------ PROGRESS (SAFE TOGGLE) ------------------
|
# ------------------ PROGRESS (SAFE TOGGLE) ------------------
|
||||||
if [[ "${ENABLE_PROGRESS:-false}" == true ]]; then
|
if [[ "${ENABLE_PROGRESS:-false}" == true ]]; then
|
||||||
RSYNC_OPTS+=(--info=progress2 --human-readable)
|
RSYNC_OPTS+=(--info=progress2 --human-readable --no-inc-recursive)
|
||||||
log "Progress enabled (progress2 + human-readable)"
|
log "Progress enabled (progress2 + human-readable)"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user