86435d4091
Mealie-Restore-Test: Borg-Extract der App-Daten + pg_restore in isoliertes Test-Postgres + Mealie-Boot + HTTP /api/app/about Smoke. Machbarkeit vorab verifiziert (kein shfs-chmod-Problem, Mealie laeuft als root und switcht intern auf PUID 99). Freshness-Check: pg_header_ok() Docker-Fallback lieferte bei korruptem Dump return 2 (unchecked) statt return 1 (invalid). Negativ-Test am 2026-06-03 bewiesen: korrupter mealie.dump wird jetzt als DUMP_HEADER_INVALID erkannt (Critical, Exit 1). Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
78 lines
2.1 KiB
Bash
Executable File
78 lines
2.1 KiB
Bash
Executable File
#!/bin/bash
|
|
set -euo pipefail
|
|
|
|
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
|
|
|
|
MODE="${1:-}"
|
|
WHATIF="${2:-}"
|
|
|
|
case "$MODE" in
|
|
freshness)
|
|
exec "$SCRIPT_DIR/check-restore-freshness.sh"
|
|
;;
|
|
vaultwarden)
|
|
if [ "$WHATIF" = "--what-if" ]; then
|
|
exec "$SCRIPT_DIR/vaultwarden-restore-test.sh" --what-if
|
|
fi
|
|
exec "$SCRIPT_DIR/vaultwarden-restore-test.sh"
|
|
;;
|
|
gitea)
|
|
if [ "$WHATIF" = "--what-if" ]; then
|
|
exec "$SCRIPT_DIR/gitea-restore-test.sh" --what-if
|
|
fi
|
|
exec "$SCRIPT_DIR/gitea-restore-test.sh"
|
|
;;
|
|
paperless)
|
|
if [ "$WHATIF" = "--what-if" ]; then
|
|
exec "$SCRIPT_DIR/paperless-restore-test.sh" --what-if
|
|
fi
|
|
exec "$SCRIPT_DIR/paperless-restore-test.sh"
|
|
;;
|
|
immich)
|
|
if [ "$WHATIF" = "--what-if" ]; then
|
|
exec "$SCRIPT_DIR/immich-restore-test.sh" --what-if
|
|
fi
|
|
exec "$SCRIPT_DIR/immich-restore-test.sh"
|
|
;;
|
|
authelia)
|
|
if [ "$WHATIF" = "--what-if" ]; then
|
|
exec "$SCRIPT_DIR/authelia-restore-test.sh" --what-if
|
|
fi
|
|
exec "$SCRIPT_DIR/authelia-restore-test.sh"
|
|
;;
|
|
nextcloud)
|
|
if [ "$WHATIF" = "--what-if" ]; then
|
|
exec "$SCRIPT_DIR/nextcloud-restore-test.sh" --what-if
|
|
fi
|
|
exec "$SCRIPT_DIR/nextcloud-restore-test.sh"
|
|
;;
|
|
komodo-bootstrap)
|
|
if [ "$WHATIF" = "--what-if" ]; then
|
|
exec "$SCRIPT_DIR/komodo-bootstrap-test.sh" --what-if
|
|
fi
|
|
exec "$SCRIPT_DIR/komodo-bootstrap-test.sh"
|
|
;;
|
|
komodo-mongo-restore)
|
|
if [ "$WHATIF" = "--what-if" ]; then
|
|
exec "$SCRIPT_DIR/komodo-mongo-restore-test.sh" --what-if
|
|
fi
|
|
exec "$SCRIPT_DIR/komodo-mongo-restore-test.sh"
|
|
;;
|
|
mealie)
|
|
if [ "$WHATIF" = "--what-if" ]; then
|
|
exec "$SCRIPT_DIR/mealie-restore-test.sh" --what-if
|
|
fi
|
|
exec "$SCRIPT_DIR/mealie-restore-test.sh"
|
|
;;
|
|
shared-pg-cluster)
|
|
if [ "$WHATIF" = "--what-if" ]; then
|
|
exec "$SCRIPT_DIR/shared-pg-cluster-restore-test.sh" --what-if
|
|
fi
|
|
exec "$SCRIPT_DIR/shared-pg-cluster-restore-test.sh"
|
|
;;
|
|
*)
|
|
echo "Usage: $0 {freshness|vaultwarden|gitea|paperless|immich|authelia|nextcloud|komodo-bootstrap|komodo-mongo-restore|shared-pg-cluster} [--what-if]" >&2
|
|
exit 1
|
|
;;
|
|
esac
|