From 651cb03338981f1fd4ececaa6c44f38e50e4dcf2 Mon Sep 17 00:00:00 2001 From: rootzoll <rotzoll@MacBook2020.fritz.box> Date: Wed, 17 Jun 2020 21:04:29 +0200 Subject: [PATCH] fix rsync command --- home.admin/30initHDD.sh | 4 ++-- home.admin/98repairMenu.sh | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/home.admin/30initHDD.sh b/home.admin/30initHDD.sh index d23ba69fb..161f5697a 100755 --- a/home.admin/30initHDD.sh +++ b/home.admin/30initHDD.sh @@ -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 diff --git a/home.admin/98repairMenu.sh b/home.admin/98repairMenu.sh index ceb315835..113d4625f 100755 --- a/home.admin/98repairMenu.sh +++ b/home.admin/98repairMenu.sh @@ -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"