set -euo pipefail

FROM_KEY=$1
TO_KEY=$2

vault read -format=json "$FROM_KEY" | jq .data > data.json

vault write -format=json "$TO_KEY" @data.json
