#!/bin/bash # Verificacion de cierre de la noche set -uo pipefail BASE=/home/rafa/joomla-migration/mirror-antiguo RUN=$(cat "$BASE/CURRENT_RUN") D=$BASE/runs/$RUN echo "=== snapshot fuente (integridad) ===" cd "$BASE/source" && sha256sum -c MANIFEST-source.sha256 echo echo "=== corrida ===" echo "run: $RUN" du -sh "$D/raw" "$D/site" echo "raw: $(find "$D/raw" -type f | wc -l) ficheros" echo "site: $(find "$D/site" -type f | wc -l) ficheros" echo echo "=== contenedores ===" docker ps --format '{{.Names}}\t{{.Status}}' | sort echo echo "=== mirror servido en 8087 ===" curl -s -o /dev/null -w 'portada: %{http_code} %{content_type}\n' http://127.0.0.1:8087/es/ echo echo "=== disco ===" df -h /home | tail -1