Bitcoin Forum
May 21, 2024, 11:39:47 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Duplicating BitcoinCore reorg  (Read 104 times)
harlequininja (OP)
Jr. Member
*
Offline Offline

Activity: 46
Merit: 13


View Profile
October 30, 2022, 05:37:51 PM
 #1

I'm running a full nod and I'd like to get another one running.
Is it possible to somehow just duplicate the database of the first node?
I guess this question has already been asked on the forum.
NeuroticFish
Legendary
*
Offline Offline

Activity: 3682
Merit: 6406


Looking for campaign manager? Contact icopress!


View Profile
October 30, 2022, 05:42:00 PM
 #2

Is it possible to somehow just duplicate the database of the first node?

I see no reason why not. Copy the data dir (see https://en.bitcoin.it/wiki/Data_directory ) on the new computer.
You can use similar structure or you can run with -datadir parameter.


The database files in the "blocks" and "chainstate" directories are cross-platform, and can be copied between different installations.

█████████████████████████
████▐██▄█████████████████
████▐██████▄▄▄███████████
████▐████▄█████▄▄████████
████▐█████▀▀▀▀▀███▄██████
████▐███▀████████████████
████▐█████████▄█████▌████
████▐██▌█████▀██████▌████
████▐██████████▀████▌████
█████▀███▄█████▄███▀█████
███████▀█████████▀███████
██████████▀███▀██████████
█████████████████████████
.
BC.GAME
▄▄░░░▄▀▀▄████████
▄▄▄
██████████████
█████░░▄▄▄▄████████
▄▄▄▄▄▄▄▄▄██▄██████▄▄▄▄████
▄███▄█▄▄██████████▄████▄████
███████████████████████████▀███
▀████▄██▄██▄░░░░▄████████████
▀▀▀█████▄▄▄███████████▀██
███████████████████▀██
███████████████████▄██
▄███████████████████▄██
█████████████████████▀██
██████████████████████▄
.
..CASINO....SPORTS....RACING..
█░░░░░░█░░░░░░█
▀███▀░░▀███▀░░▀███▀
▀░▀░░░░▀░▀░░░░▀░▀
░░░░░░░░░░░░
▀██████████
░░░░░███░░░░
░░█░░░███▄█░░░
░░██▌░░███░▀░░██▌
░█░██░░███░░░█░██
░█▀▀▀█▌░███░░█▀▀▀█▌
▄█▄░░░██▄███▄█▄░░▄██▄
▄███▄
░░░░▀██▄▀


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
harlequininja (OP)
Jr. Member
*
Offline Offline

Activity: 46
Merit: 13


View Profile
October 30, 2022, 08:12:05 PM
 #3

Will give it a go  Grin
Thank you for the wiki-entry, was very helpful.
NotATether
Legendary
*
Offline Offline

Activity: 1610
Merit: 6752


bitcoincleanup.com / bitmixlist.org


View Profile WWW
October 31, 2022, 06:16:14 AM
 #4

peers.dat does not have any personally identifiable information because this information is serialized from (ultimately) CNode which only contains addresses and some other connection stats, and its also used to display the GUI tables of peers such as this one. This statement on the wiki will be adjusted accordingly.

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
BlackHatCoiner
Legendary
*
Online Online

Activity: 1526
Merit: 7397


Farewell, Leo


View Profile
November 01, 2022, 06:02:05 PM
Merited by n0nce (1)
 #5

Copy indexes too, if you're running Bitcoin Core with txindex=1. If you're at linux, be careful not to screw it up with user permissions. This line is all that's needed:
Code:
cp -r blocks chainstate indexes <destination_directory>

You run it twice; one from your node to a hard drive, and the second from your hard drive to your other computer.

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!