Create snapshots sparsely (#4815)

This commit is contained in:
Michael Vines 2019-06-25 12:10:17 -07:00 committed by GitHub
parent 9e7f618cff
commit c5e6ebb496
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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"