fix rsync command

This commit is contained in:
rootzoll 2020-06-17 21:04:29 +02:00
parent 57fbdf3c78
commit 651cb03338
2 changed files with 3 additions and 4 deletions

View file

@ -42,9 +42,9 @@ echo "OK"
# check minimal size of data drive needed
echo
echo "# --> Check HDD/SSD for Size ..."
# bitcoin: 450 GB
# bitcoin: 440 GB
# litecoin: 120 GB
minSize=450
minSize=440
if [ "${network}" = "litecoin" ]; then
minSize=120
fi

View file

@ -61,8 +61,7 @@ copyHost()
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)
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 -o StrictHostKeyChecking=no -p "${targetPassword}" rsync -avhW --progress ./chainstate ./blocks bitcoin@${targetIP}:/mnt/hdd/bitcoin
sudo sshpass -p "${targetPassword}" rsync -avhW -e 'ssh -o StrictHostKeyChecking=no -p 22' --progress ./chainstate ./blocks bitcoin@${targetIP}:/mnt/hdd/bitcoin
#echo "Your RaspiBlitz has now stopped LND and ${network}d ..."
#echo "1. Use command to change to source dir: cd /mnt/hdd/$network"