chore: import v0.3.0 baseline and add v0.4 recovery architecture plan

This commit is contained in:
Lars committed 2026-10-29 13:58:35 +01:00
commit 40188c0e10
12 files changed
+1506

No files matched your search

+22
View File
@@ -0,0 +1,22 @@
#!/usr/bin/env bash
set -Eeuo pipefail
UNIT=raspiBackup.service
if systemctl is-active --quiet "$UNIT"; then
echo "FEHLER: raspiBackup läuft bereits" >&2
exit 1
fi
RC=0
systemctl start --wait "$UNIT" || RC=$?
RESULT=$(systemctl show --value -p Result "$UNIT")
STATUS=$(systemctl show --value -p ExecMainStatus "$UNIT")
if (( RC != 0 )) || [[ "$RESULT" != "success" || "$STATUS" != "0" ]]; then
echo "FEHLER: raspiBackup: Result=$RESULT, Status=$STATUS" >&2
exit 1
fi
echo "OK: raspiBackup erfolgreich abgeschlossen"