gabriel / muse public
restore.sh bash
10 lines 440 B
Raw
sha256:08c083095bcaffb4c43ce947668fac93bf5d261e13d321776170c4019dd1d77d fix: migration must never update identity.toml on a failed … Sonnet 5 minor ⚠ breaking 17 hours 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:08c083095bcaffb4c43ce947668fac93bf5d261e13d321776170c4019dd1d77d fix: migration must never update identity.toml on a failed … Sonnet 5 minor 17 hours ago