Bitcoin Forum
May 07, 2024, 09:18:00 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 [2]  All
  Print  
Author Topic: bitcoin-qt: Move Downloaded blockchain to another installation  (Read 14326 times)
Fressac
Newbie
*
Offline Offline

Activity: 18
Merit: 0



View Profile
March 29, 2013, 09:50:28 AM
 #21

Unable to find a definitive answer to the question of copying the blockchain to another computer, I asked Gavin via email:

In Bitcoin-Qt 0.8+, how can the blockchain be copied from one computer to another? Is it simply a matter of copying the blocks and chainstate directories?

His reply:

Yes
That's right. I posted on this here:
https://bitcointalk.org/index.php?topic=157314.msg1680307#msg1680307

Basically just make a copy of the whole Bitcoin data directory and drop it into any computer with the Bitcoin-Qt client installed on it. Make sure the client is not running and replace the existing directory with the copy.
BE CAREFUL NOT TO ERASE ANY WALLET THAT MAY HAVE VALUE!
1715073480
Hero Member
*
Offline Offline

Posts: 1715073480

View Profile Personal Message (Offline)

Ignore
1715073480
Reply with quote  #2

1715073480
Report to moderator
1715073480
Hero Member
*
Offline Offline

Posts: 1715073480

View Profile Personal Message (Offline)

Ignore
1715073480
Reply with quote  #2

1715073480
Report to moderator
1715073480
Hero Member
*
Offline Offline

Posts: 1715073480

View Profile Personal Message (Offline)

Ignore
1715073480
Reply with quote  #2

1715073480
Report to moderator
"You Asked For Change, We Gave You Coins" -- casascius
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715073480
Hero Member
*
Offline Offline

Posts: 1715073480

View Profile Personal Message (Offline)

Ignore
1715073480
Reply with quote  #2

1715073480
Report to moderator
1715073480
Hero Member
*
Offline Offline

Posts: 1715073480

View Profile Personal Message (Offline)

Ignore
1715073480
Reply with quote  #2

1715073480
Report to moderator
tinyapps
Newbie
*
Offline Offline

Activity: 22
Merit: 0


View Profile WWW
March 29, 2013, 05:54:10 PM
 #22

Quote
Basically just make a copy of the whole Bitcoin data directory and drop it into any computer
For 0.8+, you may want to skip at least the deprecated blkxxxx.dat and blkindex.dat files since they are no longer used and are quite large. More on the data directory contents: https://en.bitcoin.it/wiki/Data_directory
matt.collier
Member
**
Offline Offline

Activity: 105
Merit: 10



View Profile
March 30, 2013, 12:54:30 AM
 #23

Hello All,

I can confirm that it is possible to copy the block chain from a Windows v0.8.1-beta installation to a linux v0.8.1-beta by copying only the contents (including subdirectories) of 'blocks' and 'chainstate' folders.

Matt
tinyapps
Newbie
*
Offline Offline

Activity: 22
Merit: 0


View Profile WWW
March 30, 2013, 03:59:31 AM
 #24

Thanks very much for confirming that, Matt!
deepceleron
Legendary
*
Offline Offline

Activity: 1512
Merit: 1028



View Profile WWW
March 30, 2013, 08:50:32 AM
 #25

Unable to find a definitive answer to the question of copying the blockchain to another computer, I asked Gavin via email:

In Bitcoin-Qt 0.8+, how can the blockchain be copied from one computer to another? Is it simply a matter of copying the blocks and chainstate directories?

His reply:

Yes

That is appropriately curt. You feel entitled to bother a lead developer for your own personal tech support? I have a feeling this is one reason why Satoshi was no longer entertained with the forum.
tinyapps
Newbie
*
Offline Offline

Activity: 22
Merit: 0


View Profile WWW
March 30, 2013, 06:30:38 PM
Last edit: March 31, 2013, 12:33:58 AM by tinyapps
 #26

Quote
You feel entitled to bother a lead developer
I feel "entitled" to email anyone who shares his or her email address with the world. S/he is of course free to ignore my email. We are all equals, my friend.

Quote
for your own personal tech support?
It was actually to post here so that the entire community could have a definitive answer to this question. Ironically, it was a post of yours that finally convinced me that I had to check with someone who would actually know the correct answer: https://bitcointalk.org/index.php?topic=145437.msg1553996#msg1553996

Quote
It has also been reported that the new leveldb database format is not as portable, i.e. a datadir created on Linux might not work on Windows.
I had even replied to that comment 5 days ago asking for any further details from you or the community: https://bitcointalk.org/index.php?topic=145437.msg1670599#msg1670599

Quote
Thanks for the info, deepceleron. Do you know if it is possible to copy the 0.8 blockchain to a new computer by simply pasting the blocks and chainstate directories? Any further info on whether such a transfer would work cross-platform or not?
Sadly, apparently no one here knew the correct answer or could be bothered to share it. I decided to try my best to find out and share the answer so that others could benefit. With the blockchain well over 7.5GB and growing fast, it is important that users know how to copy the blockchain correctly.
keystroke
Hero Member
*****
Offline Offline

Activity: 900
Merit: 1014


advocate of a cryptographic attack on the globe


View Profile
April 08, 2013, 04:07:59 AM
 #27

Thanks, this was helpful information.

"The difference between a castle and a prison is only a question of who holds the keys."
Pages: « 1 [2]  All
  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!