Use scripts/restore-keyvalue.sh (see Platform recovery rehearsals).
The script has no in-place mode: it always creates a new restore-*
namespace and empty PVC, loads a checksum-validated RDB once with AOF disabled,
rewrites AOF, and verifies after rollout.
Prepare
- Paid Key Value instance id (
--id red-…). - A decryptable RDB object (
--snapshot latestor explicits3://…). - A
--verify-key(and optional--expect) known to exist in that snapshot.
DRY_RUN
bash
cd /path/to/bex
DRY_RUN=1 scripts/restore-keyvalue.sh \
--id red-EXAMPLE \
--target-namespace restore-kv-drill \
--verify-key myapp:ready \
--snapshot latestRestore
bash
scripts/restore-keyvalue.sh \
--id red-EXAMPLE \
--target-namespace restore-kv-drill \
--verify-key myapp:ready \
--expect 1 \
--snapshot latest \
--confirm restore-kv-drill \
--teardown-on-successThrowaway passwords are generated for the drill and never printed on argv.
Verify and clean up
Confirm the verify-key expectation passed. Tear down with
--teardown restore-kv-drill --confirm restore-kv-drill if needed.