Bitcoin Forum
March 13, 2026, 04:29:26 AM *
News: Latest Bitcoin Core release: 30.2 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Can I import blockchain from other computer to run full node on new computer?  (Read 102 times)
zabzob (OP)
Member
**
Offline Offline

Activity: 147
Merit: 56


View Profile
January 04, 2025, 02:53:31 AM
Merited by LoyceV (4), ABCbits (2)
 #1

I'm planning on switching my full node to a new laptop and I'm wondering if I should re-download the blockchain, or if I can just copy my current blockchain and import it to the new device.

Another, related question is: can I copy the blockchain to an SD card and then run it off the SD card on both machines, whichever one I'm using at the time? both laptops have SD card ports, so I'm thinking this could be a convenient way to be able to keep the blockchain current while switching my node between them.
ranochigo
Legendary
*
Offline Offline

Activity: 3178
Merit: 4511


View Profile
January 04, 2025, 02:58:17 AM
Last edit: January 04, 2025, 03:27:15 AM by ranochigo
Merited by ABCbits (1)
 #2

You can transfer the entire data directory less the wallet.dat to the new computer. This ensures that you won’t have to synchronize again from the start. However, this assumes that you trust the original computer and it has not been tampered with. Ensure that Bitcoin Core has shutdown safely (Bitcoin Core is completely shutdown, without the shutting down dialog).

SD cards are generally bad idea for applications requiring speed and high I/O. I’d advise against that or you would probably have an SD card with a shorter lifespan.
zabzob (OP)
Member
**
Offline Offline

Activity: 147
Merit: 56


View Profile
January 04, 2025, 03:03:52 AM
 #3

Got it, thanks
LoyceV
Legendary
*
Offline Offline

Activity: 3976
Merit: 21376


Thick-Skinned Gang Leader and Golden Feather 2021


View Profile WWW
January 04, 2025, 07:59:00 AM
 #4

SD cards are generally bad idea for applications requiring speed and high I/O.
I'm thinking this could be a convenient way to be able to keep the blockchain current while switching my node between them.
I expect the SD-card to work fine without much writing, if you only keep the blocks directory on it, and keep chainstate on your SSD. But that means manually copying that directory every time, which isn't as convenient as you're looking for.

I'd get a light wallet (like Electrum) on one laptop, and keep Bitcoin Core on the other.

¡uʍop ǝpᴉsdn pɐǝɥ ɹnoʎ ɥʇᴉʍ ʎuunɟ ʞool no⅄
ranochigo
Legendary
*
Offline Offline

Activity: 3178
Merit: 4511


View Profile
January 04, 2025, 08:18:43 AM
 #5

I expect the SD-card to work fine without much writing, if you only keep the blocks directory on it, and keep chainstate on your SSD. But that means manually copying that directory every time, which isn't as convenient as you're looking for.
Does Bitcoin Core handle the situation when blocks are in sync but the chainstate is out of sync? I've never had this situation before so I'm curious if that works and how long it'd take.

SD Cards were notoriously slow in my experience when working with Bitcoin nodes on RPi, even when they're synchronizing several blocks only. I've got a few corrupted SD Cards from this as well, external HDD/SSD would be a better alternative if possible.
ABCbits
Legendary
*
Offline Offline

Activity: 3542
Merit: 9832



View Profile
January 04, 2025, 08:19:57 AM
 #6

Yes, but you may want to make sure the SD card always mounted on same path. For example. always mounted on E: if you windows or always mounted on /media/your_username/disk_name if you use Linux. Otherwise, you'll need to tell Bitcoin Core the correct path which is less convenient.

SD cards are generally bad idea for applications requiring speed and high I/O. I’d advise against that or you would probably have an SD card with a shorter lifespan.

It's also worth to mention that SD card for professional usage exist, but usually it's more expensive and slower than buying external SSD drive.

███████████████████████████
███████▄████████████▄██████
████████▄████████▄████████
███▀█████▀▄███▄▀█████▀███
█████▀█▀▄██▀▀▀██▄▀█▀█████
███████▄███████████▄███████
███████████████████████████
███████▀███████████▀███████
████▄██▄▀██▄▄▄██▀▄██▄████
████▄████▄▀███▀▄████▄████
██▄███▀▀█▀██████▀█▀███▄███
██▀█▀████████████████▀█▀███
███████████████████████████
.
.Duelbits PREDICT..
█████████████████████████
█████████████████████████
███████████▀▀░░░░▀▀██████
██████████░░▄████▄░░████
█████████░░████████░░████
█████████░░████████░░████
█████████▄▀██████▀▄████
████████▀▀░░░▀▀▀▀░░▄█████
██████▀░░░░██▄▄▄▄████████
████▀░░░░▄███████████████
█████▄▄█████████████████
█████████████████████████
█████████████████████████
.
.WHERE EVERYTHING IS A MARKET..
█████
██
██







██
██
██████
Will Bitcoin hit $200,000
before January 1st 2027?

    No @1.15         Yes @6.00    
█████
██
██







██
██
██████

  CHECK MORE > 
LoyceV
Legendary
*
Offline Offline

Activity: 3976
Merit: 21376


Thick-Skinned Gang Leader and Golden Feather 2021


View Profile WWW
January 04, 2025, 08:25:47 AM
 #7

Does Bitcoin Core handle the situation when blocks are in sync but the chainstate is out of sync? I've never had this situation before so I'm curious if that works and how long it'd take.
Good point, maybe it just works. In that case it would still need to update chainstate, which means verifying the new blocks. This will take almost as long as just downloading the data again.

Quote
SD Cards were notoriously slow in my experience when working with Bitcoin nodes on RPi, even when they're synchronizing several blocks only. I've got a few corrupted SD Cards from this as well, external HDD/SSD would be a better alternative if possible.
There are very fast SD-cards nowadays. I have one that's faster than my old HDD.
I've never liked external disks for anything other than backups: sometimes even slightly touching the cable is enough to disconnect the drive.

¡uʍop ǝpᴉsdn pɐǝɥ ɹnoʎ ɥʇᴉʍ ʎuunɟ ʞool no⅄
DaveF
Legendary
*
Offline Offline

Activity: 4144
Merit: 7142


✅ NO KYC


View Profile WWW
January 04, 2025, 11:29:14 AM
 #8

Also, not knowing your location in the world or the actual equipment involved, but 1TB SSD / m.2 drives are no longer prohibitively expensive.

Obviously, this is not universal and can vary a lot based on where are but for the most part if you have a working machine that has the blockchain and you obviously are getting a 2nd working one then the extra money just to get a large enough drive to hold a 2nd copy is probably not going to break the bank.

And if you don't mind used then 1TB drives from reputable sources are becoming dirt cheap.

-Dave

 
 b1exch.to 
  ETH      DAI   
  BTC      LTC   
  USDT     XMR    
.███████████▄▀▄▀
█████████▄█▄▀
███████████
███████▄█▀
█▀█
▄▄▀░░██▄▄
▄▀██▄▀█████▄
██▄▀░▄██████
███████░█████
█░████░█████████
█░█░█░████░█████
█░█░█░██░█████
▀▀▀▄█▄████▀▀▀
Cricktor
Legendary
*
Offline Offline

Activity: 1428
Merit: 3727



View Profile
January 04, 2025, 04:49:58 PM
Merited by LoyceV (12), ABCbits (3)
 #9

Another, related question is: can I copy the blockchain to an SD card and then run it off the SD card on both machines, whichever one I'm using at the time? both laptops have SD card ports, so I'm thinking this could be a convenient way to be able to keep the blockchain current while switching my node between them.
Do you speak of SD or microSD cards?

I can't say much to SD cards. My very old digital camera uses this type of storage media and doesn't have much demand for write speed.

Regarding microSD cards and usage in my various Raspi 4B units, I use mostly Samsung Endurance Pro and some Endurance Evo cards. Those Endurance microSD cards are advertised to have a high write endurance because they're made to be used in surveillance cameras or similar constant write scenarios. They also have a decent write speed. MicroSD cards mostly don't have great iops numbers (this doesn't hurt so much for the blocks directory, likely more for chainstate).

Two of my Raspi 4B units, one running RaspiBlitz and another running Umbrel, boot from such Samsung Endurance microSD cards (128GB size), but both units have an attached 1TB SATA SSD for the storage needs of the running Bitcoin Core nodes. Both nodes run 24/7/365 since '21/'22 or so and no microSD issues until today.

Unfortunately the Samsung Pro Endurance microSD is only available at max. 256GB capacity, so you can only run a pruned node on it, if you want to store the datadir of Core on it.


A better solution for switching between different computers, instead of SD/microSD cards, is in my opinion a portable SSD which you connect via at least USB3. It should be minimum 1TB for a full Core node, but if I had to buy such a SSD new, I'd choose a 2TB version.

Here is space consumption of one of my running nodes (txindex and blockfilters are enabled):
Code:
66G	bitcoin/indexes
13G bitcoin/chainstate
665G bitcoin/blocks
192M bitcoin/wallets
743G bitcoin/

A 1TB SSD today with my numbers would've ~81% of their capacity used up, slowly growing. It will be fine for quite some time yet, but I'd prefer a 2TB version. More free space, more unused flash blocks for wear-leveling, likely greater longevity.

I also run an Electrum server on such a node and then 1TB doesn't leave a comfortable amount of free space left. I'm looking to replace the SSD with a 2TB version pretty soon.

███████████████████████████
███████▄████████████▄██████
████████▄████████▄████████
███▀█████▀▄███▄▀█████▀███
█████▀█▀▄██▀▀▀██▄▀█▀█████
███████▄███████████▄███████
███████████████████████████
███████▀███████████▀███████
████▄██▄▀██▄▄▄██▀▄██▄████
████▄████▄▀███▀▄████▄████
██▄███▀▀█▀██████▀█▀███▄███
██▀█▀████████████████▀█▀███
███████████████████████████
.
.Duelbits PREDICT..
█████████████████████████
█████████████████████████
███████████▀▀░░░░▀▀██████
██████████░░▄████▄░░████
█████████░░████████░░████
█████████░░████████░░████
█████████▄▀██████▀▄████
████████▀▀░░░▀▀▀▀░░▄█████
██████▀░░░░██▄▄▄▄████████
████▀░░░░▄███████████████
█████▄▄█████████████████
█████████████████████████
█████████████████████████
.
.WHERE EVERYTHING IS A MARKET..
█████
██
██







██
██
██████
Will Bitcoin hit $200,000
before January 1st 2027?

    No @1.15         Yes @6.00    
█████
██
██







██
██
██████

  CHECK MORE > 
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!