#!/usr/bin/env bash # Run a non-destructive restore test against the NAS repo. Streams output to # stdout (so the dashboard's StreamingTerminal can render it) and writes the # structured result to /srv/backups/status/last-restore-test.json. set -uo pipefail REPO_LABEL="${1:-nas}" if [ ! -x /srv/backups/scripts/restore-test.sh ]; then echo "ERROR: /srv/backups/scripts/restore-test.sh not installed" >&2 exit 1 fi exec /srv/backups/scripts/restore-test.sh "$REPO_LABEL"