Slow down extract to prevent too much power draw

This commit is contained in:
Taylor Helsper 2019-08-09 20:09:41 -05:00
parent 89e4a7d197
commit 0f2baf2cd9

View File

@ -18,7 +18,7 @@ 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
pv -L 15m $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
# 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