Description
If you already have a synced Bitcoin blockchain on one StartOS server, and would like to skip IBD on another StartOS server, follow this guide.
This is an advanced feature and should be used with caution. Start9 is not responsible for any damage you might cause through SSH access.
Instructions
-
In this guide, we will refer to your synced node as
synced.local
and your unsynced node asunsynced.local
. Simply replace these URLs with your own. -
In
unsynced.local
UI, install Bitcoin. Do not configure or start it. -
In
synced.local
UI:-
Ensure you have already have an SSH key.
-
Stop Bitcoin.
-
-
SSH into
synced.local
:ssh start9@synced.local
-
Once inside the shell, run the following commands:
sudo -i
mkdir -m 0700 -p .ssh
ssh-keygen -t ed25519 -N '' -f .ssh/temp.key
chmod 600 .ssh/temp.key*
cat .ssh/temp.key.pub
-
Copy the output of the final
cat
command to your clipboard. -
In
unsynced.local
UI, go toSystem > SSH > Add New Key
, and paste the value from above. Click "Submit" -
In
synced.local
shell, run the following commands, replacingunsynced.local
in the second command with the correct URL:cd /embassy-data/package-data/volumes/bitcoind/data/main/
rsync -e "ssh -i ~/.ssh/temp.key" -povgr --append-verify --rsync-path="sudo mkdir -p /embassy-data/package-data/volumes/bitcoind/data/main ; sudo rsync" ./{blocks,chainstate} start9@unsynced.local:/embassy-data/package-data/volumes/bitcoind/data/main/
-
Wait some hours until the copy is complete. On a gigabit network, the limiting factor will be the write speed of your SSD on the unsynced server.
-
When the copy is complete, in
synced.local
shell, run the following commands:rm .ssh/unsynced.key*
exit
-
In
synced.local
UI, restart Bitcoin. -
In
unsynced.local
UI:-
configure and start Bitcoin for the first time. You should see it begin at 99%+ pre-synced!
-
Delete the
temp.key
SSH key we added above.
-