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
Published at
2023-05-27 14:39:32Event JSON
{
"id": "56a6661c3c3df4c62f4122c77de740d91b3317c924b822a58f72c4f6f7ba58d8",
"pubkey": "c89efed3f3c52a2d5644afb23a3ecf3c6534b21351702eb9eb2b2e47208d0cfe",
"created_at": 1685198372,
"kind": 1,
"tags": [],
"content": "I synced my new node in under one hour. Say what? \n\nHere's how you migrate your node without doing the initial block download. \n\nhttps://nostr.build/i/c579c38da928a81b13e12c0d1623492f269fa042d74ee09356f9b533e84af87e.jpg\n\nRequirements:\n- old node hard drive, synched\n- new 1 TB hard drive\n\nProcess:\n- mount old drive to new node\n- copy folders into bitcoin data folder\n\nDetails as to how this is done on a start9 embassy node:\n\nInstall 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\n\nConnect your hard drive and ssh into the new node after installation.\n\nYou need to copy three folders: \n\n- bitcoin/blocks\n- bitcoin/chainstate\n- bitcoin/indexes\n\nlike so:\nsudo cp -r /path/to/old/bitcoin/data/folder/blocks /embassy-data/package-data/volumes/bitcoind/data/main/\n\nsudo cp -r /yourpath/bitcoin/chainstate /embassy-data/package-data/volumes/bitcoind/data/main/\nsudo cp -r /yourpath/indexes /embassy-data/package-data/volumes/bitcoind/data/main/\n\nThis way, I could move 9.5 gigs per minute on 2013 Intel hardware. The transfer took me 58 minutes\n\nAn hour later, I have a mostly functional node and can move on to initializing other apps such as electRS and mempool",
"sig": "06f8dbaee334168485b42cc6182dd5972001ac780c9a64981b5b4147ec4f211d4376af2757e4fd46185abdc609e17fc0a5bf715d1e852e99cf338244eb4e5660"
}