#!/bin/bash set -uo pipefail BASE=/home/rafa/joomla-migration/mirror-antiguo RUN=$(cat "$BASE/CURRENT_RUN") DIR=$BASE/runs/$RUN echo "=== inicio/fin ==="; cat "$DIR/logs/passA.start" "$DIR/logs/passA.end" echo "=== codigos de error de wget ===" grep -hoE 'ERROR [0-9]+[^.]*' "$DIR/logs"/wget-urls-*.log | sort | uniq -c echo "=== lineas de fallo ===" grep -hE 'ERROR [0-9]|unable to resolve|Giving up|failed:' "$DIR/logs"/wget-urls-*.log | head -20 echo "=== descargadas segun log ===" grep -hc '^2026' "$DIR/logs"/wget-urls-*.log | paste -sd+ | bc echo "=== 500/40x en apache durante el pase A ===" docker logs --since 2026-07-29T22:47:00Z joomla-mirror-web 2>&1 | grep -c '" 500 ' docker logs --since 2026-07-29T22:47:00Z joomla-mirror-web 2>&1 | grep -c '" 40[0-9] '