gabriel / muse public
restore.sh bash
10 lines 440 B
Raw
sha256:9a3bb190de5a18742792038aa709072a582ada8b223d5dfa4f72c70831ec3ba3 docs: revert migrate hub-scoping/domain-integers rows from … Sonnet 5 2 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:9a3bb190de5a18742792038aa709072a582ada8b223d5dfa4f72c70831ec3ba3 docs: revert migrate hub-scoping/domain-integers rows from … Sonnet 5 2 hours ago