diff --git a/ansible/archival-snapshots/resources/main.sh b/ansible/archival-snapshots/resources/main.sh index 8b5f0cfee..04a1dfb36 100755 --- a/ansible/archival-snapshots/resources/main.sh +++ b/ansible/archival-snapshots/resources/main.sh @@ -27,10 +27,8 @@ while ((LATEST_EPOCH - CURRENT_EPOCH > 30000)); do echo "Next Height: $NEW_EPOCH" # Export full snapshot to generate lite and diff snapshots - EXPORT_OUTPUT=$($FOREST_CLI snapshot export --tipset "$NEW_EPOCH" --depth 30000) - echo "Downloaded $EXPORT_OUTPUT" - NEW_SNAPSHOT=$(echo "$EXPORT_OUTPUT" | grep forest | awk -F'[:]' '{print $1}') - + $FOREST_CLI snapshot export --tipset "$NEW_EPOCH" --depth 30000 > export.log + NEW_SNAPSHOT=$(grep forest export.log | awk -F'[:]' '{print $1}') # Generate and upload lite snapshot if [ ! -f "$LITE_SNAPSHOT_DIR/$NEW_SNAPSHOT" ]; then