I currently have a full bitcoin node running on Windows and I'm looking to set up three more nodes in different locations.
I want to use Ubuntu for these new nodes since it’s free, lighter, and I just prefer it.
My question is, can I just copy the blockchain data from my Windows setup and use it for the full nodes on Ubuntu? Or are the file types different and incompatible? I know it sounds a bit silly since I mentioned the file type thing, but I bet some of you here know way more about this than I do.
Any help would be awesome.
Setting up Ubuntu nodes with blockchain data from Windows
5 replies 131 views
humbleledgerLegendary
Posts: 1027 · Reputation: 6554
#2Sep 30, 2024, 12:39 PM
I think this should work, and it's definitely worth a try. If it doesn't work, nothing is lost and you'll start a fresh sync.
Well I'll be trying tonight, so I'll keep you updated on how I progress 👍
coin_sigmaLegendary
Posts: 1275 · Reputation: 5553
#4Sep 30, 2024, 04:45 PM
It should work just fine but don't forget to copy the chainstate folder if you don't want to be stuck in the loading process or else you might end up needing to run Bitcoin Core with -reindex or -reindex-chainstate.
Make sure to properly shutdown your Bitcoin Core on your source computer before you start to copy the blockchain data. I would copy all content of folders blocks, chainstate and indexes if you have left the configuration of Bitcoin Core mostly at its default settings (what I mean: didn't change the location of any data folder). Those three folders should be in the base data directory of Bitcoin Core.
paul.stakeHero Member
Posts: 651 · Reputation: 3798
#6Sep 30, 2024, 08:17 PM
Don't try to copy blocks, chainstate and indexes without making sure your external disk is error-free. Check its condition. There's a small chance it has bad sectors, which can lead to incomplete transfers (AKA, corrupted files). During transfer close any unnecessary programs. I'd use a freshly formatted disk for this purpose, if I were you.
Speaking out of experience...
Related topics
- Using two different Bitcoin versions without messing up blockchain data 3
- Got a free laptop, need help setting up Linux for a node 19
- Affordable quiet mini PC for running a Bitcoin node and blockchain explorer 19
- What determines the average size of blk*.data files? 2
- bitcoin-qt sync issues and slow speeds 6
- Recovering a Bitcoin wallet and address 8