From d8aa4496277d853a6fa242c92b733d4fd80c389d Mon Sep 17 00:00:00 2001 From: rootzoll Date: Sun, 10 Feb 2019 20:11:47 +0100 Subject: [PATCH] improve copy HDD --- home.admin/10setupBlitz.sh | 10 +++++----- home.admin/50copyHDD.sh | 11 +++-------- 2 files changed, 8 insertions(+), 13 deletions(-) diff --git a/home.admin/10setupBlitz.sh b/home.admin/10setupBlitz.sh index 130b2ff..70e7cb5 100755 --- a/home.admin/10setupBlitz.sh +++ b/home.admin/10setupBlitz.sh @@ -201,19 +201,19 @@ if [ ${mountOK} -eq 1 ]; then clear case $menuitem in T) - ./50torrentHDD.sh + /home/admin/50torrentHDD.sh ;; C) - ./50copyHDD.sh + /home/admin/50copyHDD.sh ;; N) - ./50cloneHDD.sh + /home/admin/50cloneHDD.sh ;; S) - ./50syncHDD.sh + /home/admin/50syncHDD.sh ;; D) - ./50downloadHDD.sh + /home/admin/50downloadHDD.sh ;; esac exit 1 diff --git a/home.admin/50copyHDD.sh b/home.admin/50copyHDD.sh index aefaca2..0b73420 100755 --- a/home.admin/50copyHDD.sh +++ b/home.admin/50copyHDD.sh @@ -34,13 +34,6 @@ echo "This command will ask for your SSH PASSWORD A from this RaspiBlitz." echo "It can take multiple hours until transfer is complete - be patient." echo "************************************************************************************" echo "PRESS ENTER if transfers is done OR if you want to choose another another option." -#echo "Copy, Paste and Execute the following commands - line by line:" -#echo "sudo scp -r ./chainstate bitcoin@${localip}:/home/bitcoin/.bitcoin/chainstate" -#echo "sudo scp -r ./indexes bitcoin@${localip}:/home/bitcoin/.bitcoin/indexes" -#echo "sudo scp -r ./blocks bitcoin@${localip}:/home/bitcoin/.bitcoin/blocks" -#echo "" -#echo "Every command above needs your SSH PASSWORD A to work and will take some time to transfer." -#echo "PRESS ENTER if all 3 transfers are done or if you dont care and you want to return to menu." read key # unlink bitcoin user (will created later in setup again) @@ -103,10 +96,12 @@ if [ ${anyDataAtAll} -eq 1 ]; then else + echo "NO DATA ... back to menu .." # when no data transferred - just delete bitcoin base dir again sudo rm -rf /mnt/hdd/bitcoin + sleep 2 fi # setup script will decide the next logical step -./10setupBlitz.sh \ No newline at end of file +/home/admin/10setupBlitz.sh \ No newline at end of file