Setting up Ubuntu nodes with blockchain data from Windows

5 replies 131 views
luckychadMember
Posts: 4 · Reputation: 74
#1Sep 30, 2024, 10:58 AM
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.
5 Reply Quote Share
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.
3 Reply Quote Share
luckychadMember
Posts: 4 · Reputation: 74
#3Sep 30, 2024, 04:12 PM
Well I'll be trying tonight, so I'll keep you updated on how I progress 👍
2 Reply Quote Share
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.
1 Reply Quote Share
im_lynxHero Member
Posts: 515 · Reputation: 2161
#5Sep 30, 2024, 06:32 PM
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.
1 Reply Quote Share
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...
1 Reply Quote Share

Related topics