restore.sh
bash
sha256:a57e9ca1e385a1e7a0e3e28094bc35799950a3ed7b2421712d6fb7f0e523a4a0
feat(dev-safety): Phase 5 of #185 — belt-and-suspenders aut…
Sonnet 5
patch
3 days ago
| 1 | #!/usr/bin/env bash |
| 2 | # restore.sh — restore a canonical repo from a snapshot-store.sh or |
| 3 | # backup-bundle.sh backup. Refuses to overwrite a currently-healthy |
| 4 | # canonical repo unless --force is passed. See #185 Phase 5. |
| 5 | # |
| 6 | # Usage: |
| 7 | # restore.sh <repo> --from-snapshot <name> [--force] |
| 8 | # restore.sh <repo> --from-bundle <name> [--force] |
| 9 | set -euo pipefail |
| 10 | exec python3 "$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/backup.py" restore "$@" |
File History
1 commit
sha256:a57e9ca1e385a1e7a0e3e28094bc35799950a3ed7b2421712d6fb7f0e523a4a0
feat(dev-safety): Phase 5 of #185 — belt-and-suspenders aut…
Sonnet 5
patch
3 days ago