Validators now rsync the ledger smarter

- Don't re-rsync parts of the ledger that are already present
- Disable compression
This commit is contained in:
Michael Vines 2018-08-07 17:28:12 -07:00
parent 999534248b
commit 5fec0ac82f
1 changed files with 2 additions and 2 deletions

View File

@ -93,9 +93,9 @@ rsync_leader_url=$(rsync_url "$leader")
tune_networking
rm -rf "$SOLANA_LEADER_CONFIG_DIR"
set -ex
$rsync -vPrz "$rsync_leader_url"/config/ "$SOLANA_LEADER_CONFIG_DIR"
$rsync --append --verbose --partial --progress --recursive \
"$rsync_leader_url"/config/ "$SOLANA_LEADER_CONFIG_DIR"
[[ -d $SOLANA_LEADER_CONFIG_DIR/ledger ]] || {
echo "Unable to retrieve ledger from $rsync_leader_url"
exit 1