f473fbaa8b
Nextcloud-Restore-Test nach dem Muster der anderen Restore-Smokes: - Borg-Extract von html (App-Code + config.php) und nextcloud.dump - pg_restore in isoliertes Test-Postgres (mit Retry-Schleife) - config.php wird im Restore-Lab auf Test-DB-Credentials gepatcht (produktive Secrets werden nicht gemountet) - Nextcloud startet gegen restaurierte Daten + Test-Redis - Smoke prueft HTTP /status.php und occ status (maintenance mode) - Produktive Nutzdaten unter /mnt/user/documents/nextcloud-data werden bewusst NICHT gemountet (zu gross fuer regelmaessigen Smoke) Erster Lauf steht aus und braucht Operator-Freigabe auf dem Host. Dispatcher und ntfy-Wrapper um Nextcloud erweitert. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
60 lines
1.5 KiB
Bash
Executable File
60 lines
1.5 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"
|
|
;;
|
|
*)
|
|
echo "Usage: $0 {freshness|vaultwarden|gitea|paperless|immich|authelia|nextcloud|komodo-bootstrap} [--what-if]" >&2
|
|
exit 1
|
|
;;
|
|
esac
|