chore: initialize Prime core structure

This commit is contained in:
Prime Backup Bot
2026-03-11 15:27:18 +00:00
commit dd57bfcc88
5 changed files with 30 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
#!/usr/bin/env bash
set -euo pipefail
BASE=/srv/prime-core
COMMIT="${1:-}"
[[ -n "$COMMIT" ]] || { echo "Usage: restore.sh <commit-id>"; exit 1; }
cd "$BASE"
git rev-parse --verify "$COMMIT^{commit}" >/dev/null
SNAP="pre-restore-$(date -u +%Y%m%dT%H%M%SZ)"
git tag "$SNAP" HEAD
git checkout -f "$COMMIT"
echo "Restored workspace to $COMMIT (saved $SNAP)"