Save QuickSync tar extract output and remove rate limit

This commit is contained in:
Taylor Helsper 2019-09-22 16:46:55 -05:00
parent 79667c269f
commit 1f149eed6d

View File

@ -17,8 +17,11 @@ sync
echo "quicksync_copy" > $MYNODE_DIR/.mynode_status echo "quicksync_copy" > $MYNODE_DIR/.mynode_status
rm -rf $MYNODE_DIR/bitcoin/blocks/ rm -rf $MYNODE_DIR/bitcoin/blocks/
rm -rf $MYNODE_DIR/bitcoin/chainstate/ rm -rf $MYNODE_DIR/bitcoin/chainstate/
#tar -xvf $QUICKSYNC_DIR/blockchain*.tar.gz -C $MYNODE_DIR/bitcoin/ --dereference tar -xvf $QUICKSYNC_DIR/blockchain*.tar.gz -C $MYNODE_DIR/bitcoin/ --dereference 2>&1 > /tmp/tar_log_$(date +%s)
pv -L 10m $QUICKSYNC_DIR/blockchain*.tar.gz | tar xzvf - -C $MYNODE_DIR/bitcoin/ --dereference #pv -L 10m $QUICKSYNC_DIR/blockchain*.tar.gz | tar xzvf - -C $MYNODE_DIR/bitcoin/ --dereference
sync
sleep 30s
# Mark quicksync complete and give BTC a few minutes to startup with its new data # Mark quicksync complete and give BTC a few minutes to startup with its new data
touch $QUICKSYNC_DIR/.quicksync_complete touch $QUICKSYNC_DIR/.quicksync_complete