mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2025-02-24 06:48:00 +01:00
fix rsync command
This commit is contained in:
parent
57fbdf3c78
commit
651cb03338
2 changed files with 3 additions and 4 deletions
|
@ -42,9 +42,9 @@ echo "OK"
|
||||||
# check minimal size of data drive needed
|
# check minimal size of data drive needed
|
||||||
echo
|
echo
|
||||||
echo "# --> Check HDD/SSD for Size ..."
|
echo "# --> Check HDD/SSD for Size ..."
|
||||||
# bitcoin: 450 GB
|
# bitcoin: 440 GB
|
||||||
# litecoin: 120 GB
|
# litecoin: 120 GB
|
||||||
minSize=450
|
minSize=440
|
||||||
if [ "${network}" = "litecoin" ]; then
|
if [ "${network}" = "litecoin" ]; then
|
||||||
minSize=120
|
minSize=120
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -61,8 +61,7 @@ copyHost()
|
||||||
echo "# get IP of RaspiBlitz to copy to ..."
|
echo "# get IP of RaspiBlitz to copy to ..."
|
||||||
targetIP=$(whiptail --inputbox "\nPlease enter the LOCAL IP of the\nRaspiBlitz to copy Blockchain to:" 10 38 "" --title " Target IP " --backtitle "RaspiBlitz - Copy Blockchain" 3>&1 1>&2 2>&3)
|
targetIP=$(whiptail --inputbox "\nPlease enter the LOCAL IP of the\nRaspiBlitz to copy Blockchain to:" 10 38 "" --title " Target IP " --backtitle "RaspiBlitz - Copy Blockchain" 3>&1 1>&2 2>&3)
|
||||||
targetPassword=$(whiptail --passwordbox "\nPlease enter the PASSWORD A of the\nRaspiBlitz to copy Blockchain to:" 10 38 "" --title "Target Password" --backtitle "RaspiBlitz - Copy Blockchain" 3>&1 1>&2 2>&3)
|
targetPassword=$(whiptail --passwordbox "\nPlease enter the PASSWORD A of the\nRaspiBlitz to copy Blockchain to:" 10 38 "" --title "Target Password" --backtitle "RaspiBlitz - Copy Blockchain" 3>&1 1>&2 2>&3)
|
||||||
|
sudo sshpass -p "${targetPassword}" rsync -avhW -e 'ssh -o StrictHostKeyChecking=no -p 22' --progress ./chainstate ./blocks bitcoin@${targetIP}:/mnt/hdd/bitcoin
|
||||||
sudo sshpass -o StrictHostKeyChecking=no -p "${targetPassword}" rsync -avhW --progress ./chainstate ./blocks bitcoin@${targetIP}:/mnt/hdd/bitcoin
|
|
||||||
|
|
||||||
#echo "Your RaspiBlitz has now stopped LND and ${network}d ..."
|
#echo "Your RaspiBlitz has now stopped LND and ${network}d ..."
|
||||||
#echo "1. Use command to change to source dir: cd /mnt/hdd/$network"
|
#echo "1. Use command to change to source dir: cd /mnt/hdd/$network"
|
||||||
|
|
Loading…
Add table
Reference in a new issue