Browse Source
Properly create tarfile without prefix for FastSync
dcg-latest
nicolas.dorier
5 years ago
No known key found for this signature in database
GPG Key ID: 6618763EF09186FE
1 changed files with
5 additions and
3 deletions
-
contrib/FastSync/save-utxo-set-in-bitcoind.sh
|
|
@ -26,8 +26,10 @@ cd /data |
|
|
|
TAR_NAME="utxo-snapshot-bitcoin-$NBITCOIN_NETWORK-$PRUNED_HEIGHT.tar" |
|
|
|
echo "Creating $TAR_NAME..." |
|
|
|
echo "Adding $NETWORK_DIRECTORY/blocks/*" |
|
|
|
tar -cvf "$TAR_NAME" "$NETWORK_DIRECTORY/blocks/" |
|
|
|
cd "$NETWORK_DIRECTORY" |
|
|
|
tar -cvf "$TAR_NAME" "blocks/" |
|
|
|
echo "Adding $NETWORK_DIRECTORY/chainstate/*" |
|
|
|
tar -rvf "$TAR_NAME" "$NETWORK_DIRECTORY/chainstate/" |
|
|
|
echo "TAR file created" |
|
|
|
tar -rvf "$TAR_NAME" "chainstate/" |
|
|
|
mv "$TAR_NAME" "/data/$TAR_NAME" |
|
|
|
echo "TAR file created to /data/$TAR_NAME" |
|
|
|
exit |
|
|
|