Compress exported testnet state
This commit is contained in:
parent
b87609436a
commit
d197dd51e1
@ -19,10 +19,10 @@ OUTPUT_DIR=${TESTNET_DEPLOYMENT_DIR}/export
|
|||||||
mkdir -p $OUTPUT_DIR
|
mkdir -p $OUTPUT_DIR
|
||||||
|
|
||||||
# Export state from testnet chain
|
# Export state from testnet chain
|
||||||
testnet_state_file="$OUTPUT_DIR/testnet-state.json"
|
testnet_state_file="$OUTPUT_DIR/testnet-state.json.gz"
|
||||||
docker run -it \
|
docker run -it \
|
||||||
-v ${TESTNET_DEPLOYMENT_DIR}/data/laconicd-data:/root/testnet-deployment/.laconicd \
|
-v ${TESTNET_DEPLOYMENT_DIR}/data/laconicd-data:/root/testnet-deployment/.laconicd \
|
||||||
cerc/laconicd:local bash -c "laconicd export --home /root/testnet-deployment/.laconicd" \
|
cerc/laconicd:local bash -c "laconicd export --home /root/testnet-deployment/.laconicd" \
|
||||||
| jq > "$testnet_state_file"
|
| jq | gzip > "$testnet_state_file"
|
||||||
|
|
||||||
echo "Exported state from testnet to $testnet_state_file"
|
echo "Exported state from testnet to $testnet_state_file"
|
||||||
|
Loading…
Reference in New Issue
Block a user