From 271af5c75dc27e65956175f0eaf7433deac15914 Mon Sep 17 00:00:00 2001 From: rootzoll Date: Wed, 23 Jan 2019 00:43:05 +0100 Subject: [PATCH] fix copy blockchain commands --- FAQ.md | 2 +- home.admin/50copyHDD.sh | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/FAQ.md b/FAQ.md index 06e1490..5e77dcf 100644 --- a/FAQ.md +++ b/FAQ.md @@ -40,7 +40,7 @@ One requirement is that the blockchain is from another bitcoin-core client with But we dont copy the data via USB to the device, because the HDD needs to be formatted in EXT4 and that is usually not read/writeable by Windows or Mac computers. So I will explain a way to copy the data thru your local network. This should work from Windows, Mac, Linux and even from another already synced RaspiBlitz. -Both computers (your RaspberryPi and the other computer with the full blockchain on) need to be connected to the same local network. Make sure that bitcoin is stoped on the computer containing the blockchain. If your blockchain source is another RaspiBlitz run on the terminal `sudo systemctl stop bitcoind` - when copy/transfer is done later reboot a RaspiBlitz source with `sudo shutdown -r now`. +Both computers (your RaspberryPi and the other computer with the full blockchain on) need to be connected to the same local network. Make sure that bitcoin is stoped on the computer containing the blockchain. If your blockchain source is another RaspiBlitz run on the terminal `sudo systemctl stop bitcoind` and then go to the directory where the blochcian data is with `sudo cd /mht/hdd/bitcoin` - when copy/transfer is done later reboot a RaspiBlitz source with `sudo shutdown -r now`. If everything of the above is prepared, start the setup of the new RaspiBlitz with a fresh SD card (like explained in the README) - its OK that there is no blockchain data on your HDD yet - just follow the setup. When you get to the setup-point `Getting the Blockchain` choose the COPY option. Starting from version 1.0 of the RaspiBlitz this will give you further detailed instructions how to transfere the blockchain data onto your RaspiBlitz. In short: On your computer with the blockchain data source you will execute SCP commands, that will copy the data over your Local Network to your RaspiBlitz. diff --git a/home.admin/50copyHDD.sh b/home.admin/50copyHDD.sh index 4e683b9..3d9b1e2 100755 --- a/home.admin/50copyHDD.sh +++ b/home.admin/50copyHDD.sh @@ -25,9 +25,9 @@ echo "blockchain data. You should see directories 'blocks', 'chainstate' & 'inde echo "Make sure the bitcoin client on that computer is stopped." echo "" echo "Copy, Paste and Execute the following commands - line by line:" -echo "scp -R ./blocks bitcoin@${localip}:/home/bitcoin/.bitcoin/blocks" -echo "scp -R ./chainstate bitcoin@${localip}:/home/bitcoin/.bitcoin/chainstate" -echo "scp -R ./indexes bitcoin@${localip}:/home/bitcoin/.bitcoin/indexes" +echo "sudo scp -R ./blocks bitcoin@${localip}:/home/bitcoin/.bitcoin/blocks" +echo "sudo scp -R ./chainstate bitcoin@${localip}:/home/bitcoin/.bitcoin/chainstate" +echo "sudo scp -R ./indexes bitcoin@${localip}:/home/bitcoin/.bitcoin/indexes" 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."