Bitcoin Forum
October 14, 2024, 04:01:13 PM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: migrating blockchain to a new computer  (Read 773 times)
Sydboy (OP)
Full Member
***
Offline Offline

Activity: 196
Merit: 100


View Profile
July 26, 2014, 12:44:31 AM
 #1

hi

i need some help with migrating bitcoin-qt files to another desktop i am temporarily using.
i have done it previously with older versions so i dont no if the steps are valid.
i no wallet.dat can be moved across, but i do not no about the blockchain files.

my version of bitcoin-qt is 0.8.x
do i need to do a -detach or anything on the existing pc or can i just install bitcoin-qt on the new desktop then copy and paste %appdata%/bitcoin across ? if so do i copy paste all the files or do i need to leave some out ?

is there a wiki or something i can check ?

thanks!
zvs
Legendary
*
Offline Offline

Activity: 1680
Merit: 1000


https://web.archive.org/web/*/nogleg.com


View Profile WWW
July 26, 2014, 01:00:51 AM
 #2

copy & paste them all

you should update your bitcoin version though, 0.8.xx is old
Sydboy (OP)
Full Member
***
Offline Offline

Activity: 196
Merit: 100


View Profile
July 26, 2014, 01:13:50 AM
 #3

thanks for that Smiley

yes it is a little bit old.  i dont like 0.9, the look and feel annoys me for some reason. i ended up uninstalling it after i was done playing around.
i think if i have rpc disabled in 0.8 i should not be vulnerable to some of the latest ssl exploits.
Dare
Hero Member
*****
Offline Offline

Activity: 508
Merit: 500


Techwolf on #bitcoin and Reddit


View Profile WWW
July 26, 2014, 04:53:31 AM
 #4

The only thing you need to copy over to avoid needing to redownload the blockchain is the blocks directory, everything else will be automatically regenerated (except the wallet; if you want to use the same one instead of using a separate one for the other computer, copy wallet.dat as well). If you're moving everything to a different computer and keeping the same wallet, you can copy over everything and it shouldn't need to reindex (saving you ~30min-2hr, depending on your computer). There's no "detatch" command necessary, but Bitcoin-Qt should be closed while you're copying the files.

BTC: 1M8oUcBnkRDEhWWgV8ZXLTB6p1mgnejVbX
How Forum Activity Works
Bitcointalk Forum Rules
|
|
|
Firstbits (lucky vanitygen): 1WoLfRUGDx1
How Forum Trust Works
Bitcoin Source Code
zvs
Legendary
*
Offline Offline

Activity: 1680
Merit: 1000


https://web.archive.org/web/*/nogleg.com


View Profile WWW
July 26, 2014, 06:58:28 AM
 #5

The only thing you need to copy over to avoid needing to redownload the blockchain is the blocks directory, everything else will be automatically regenerated (except the wallet; if you want to use the same one instead of using a separate one for the other computer, copy wallet.dat as well). If you're moving everything to a different computer and keeping the same wallet, you can copy over everything and it shouldn't need to reindex (saving you ~30min-2hr, depending on your computer). There's no "detatch" command necessary, but Bitcoin-Qt should be closed while you're copying the files.

I've always copied over chainstate... so you're saying you don't need to copy over chainstate on a --reindex?
Dare
Hero Member
*****
Offline Offline

Activity: 508
Merit: 500


Techwolf on #bitcoin and Reddit


View Profile WWW
July 26, 2014, 10:38:18 PM
 #6

The only thing you need to copy over to avoid needing to redownload the blockchain is the blocks directory, everything else will be automatically regenerated (except the wallet; if you want to use the same one instead of using a separate one for the other computer, copy wallet.dat as well). If you're moving everything to a different computer and keeping the same wallet, you can copy over everything and it shouldn't need to reindex (saving you ~30min-2hr, depending on your computer). There's no "detatch" command necessary, but Bitcoin-Qt should be closed while you're copying the files.

I've always copied over chainstate... so you're saying you don't need to copy over chainstate on a --reindex?

Correct; the chainstate DB contains data about unspent transaction outputs, and is rebuilt when you run a --reindex (see https://en.bitcoin.it/wiki/Data_directory#chainstate_subdirectory). I'm not certain if it just applies to the wallet or to the entire blockchain, but judging by its size (and by how full nodes work) I'm guessing the entire blockchain. In that case, my earlier post is incorrect, and you should always copy over the chainstate folder as well to avoid needing to reindex; however, if you don't, it'll just rebuild when you first start the client. Since it doesn't need to download anything and is only using information from the blocks DB, it may take a while depending on your computer but it isn't dependent on network speed.

BTC: 1M8oUcBnkRDEhWWgV8ZXLTB6p1mgnejVbX
How Forum Activity Works
Bitcointalk Forum Rules
|
|
|
Firstbits (lucky vanitygen): 1WoLfRUGDx1
How Forum Trust Works
Bitcoin Source Code
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!