Create snapshots sparsely (#4815) (#4816)

(cherry picked from commit c5e6ebb496)
This commit is contained in:
mergify[bot]
2019-06-25 12:13:05 -07:00
committed by Michael Vines
parent 85a77bec5f
commit b2582196db

View File

@ -490,7 +490,7 @@ while true; do
rm -rf "$new_state_dir" "$new_state_archive"
cp -a "$state_dir" "$new_state_dir"
cd "$new_state_dir"
tar zcf "$new_state_archive" ./*
tar zcfS "$new_state_archive" ./*
)
ln -f "$new_state_archive" "$SOLANA_RSYNC_CONFIG_DIR"/state.tgz
rm -rf "$new_state_dir" "$new_state_archive"