Why Nostr? What is Njump?
2023-05-27 14:39:32

Jogi on Nostr: I synced my new node in under one hour. Say what? Here's how you migrate your node ...

I synced my new node in under one hour. Say what?

Here's how you migrate your node without doing the initial block download.



Requirements:
- old node hard drive, synched
- new 1 TB hard drive

Process:
- mount old drive to new node
- copy folders into bitcoin data folder

Details as to how this is done on a start9 embassy node:

Install and launch bitcoin core. Shut it done right away. You don't wanna download block data, just make sure the folder structure is in place

Connect your hard drive and ssh into the new node after installation.

You need to copy three folders:

- bitcoin/blocks
- bitcoin/chainstate
- bitcoin/indexes

like so:
sudo cp -r /path/to/old/bitcoin/data/folder/blocks /embassy-data/package-data/volumes/bitcoind/data/main/

sudo cp -r /yourpath/bitcoin/chainstate /embassy-data/package-data/volumes/bitcoind/data/main/
sudo cp -r /yourpath/indexes /embassy-data/package-data/volumes/bitcoind/data/main/

This way, I could move 9.5 gigs per minute on 2013 Intel hardware. The transfer took me 58 minutes

An hour later, I have a mostly functional node and can move on to initializing other apps such as electRS and mempool
Author Public Key
npub1ez00a5lnc54z64jy47er50k083jnfvsn29czaw0t9vhywgydpnlqy420zy