Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: No_2 on June 19, 2014, 08:49:16 AM



Title: Windows and Linux Wallet and Blockchain client file interoperability
Post by: No_2 on June 19, 2014, 08:49:16 AM
Do the windows and Linux versions of bitcoinQT use the same wallet.dat file; i.e. can I move the wallet.dat file from a windows machine to a Linux one and have bitcoinQT work with that wallet?

Same question for the directories and files containing the blockchain data; i.e. can I move all the directories and files from the associated bitcoinQT directory which has an up to date version of the blockcahin on a windows hot wallet to the associated bitcoinQT directory for a Linux cold wallet to get that wallet to see the latest view of the blockchain?


Title: Re: Windows and Linux Wallet and Blockchain client file interoperability
Post by: Justin00 on June 19, 2014, 10:54:25 AM
The wallet.dat you can move between the 2, or anywhere really.

the other data files should be able to be moved, but you might need to use some special command, I recall in older versions of bitcoin you had to do somtrhing special to be able to make the blockchain files even from one directory to another in windows... I can't remember the exact details though sorry.
have a bit of a search.. i'm not sure if on the new versions of bitcoin-qt you can just move them.... but the wallet.dat you can.. i do it all the time :)

Do the windows and Linux versions of bitcoinQT use the same wallet.dat file; i.e. can I move the wallet.dat file from a windows machine to a Linux one and have bitcoinQT work with that wallet?

Same question for the directories and files containing the blockchain data; i.e. can I move all the directories and files from the associated bitcoinQT directory which has an up to date version of the blockcahin on a windows hot wallet to the associated bitcoinQT directory for a Linux cold wallet to get that wallet to see the latest view of the blockchain?



Title: Re: Windows and Linux Wallet and Blockchain client file interoperability
Post by: Dare on June 20, 2014, 09:07:11 PM
Do the windows and Linux versions of bitcoinQT use the same wallet.dat file; i.e. can I move the wallet.dat file from a windows machine to a Linux one and have bitcoinQT work with that wallet?

Same question for the directories and files containing the blockchain data; i.e. can I move all the directories and files from the associated bitcoinQT directory which has an up to date version of the blockcahin on a windows hot wallet to the associated bitcoinQT directory for a Linux cold wallet to get that wallet to see the latest view of the blockchain?


The wallet.dat file is universal, it should work on all platforms.

The blockchain files should work as well, but both computers would probably need to be compiled against the same version of BerkeleyDB to avoid needing to upgrade (or downgrade, which may not be possible) them for the new computer. If you have the same version of Bitcoin-qt on both computers (and the linux version is statically compiled; if you're not sure, it probably is), then you'll be fine; if not, it should still work, if the versions are close to each other, but it's harder to say for sure.

I believe the chainstate files will need to be rebuilt by the target computer either way, unless you're talking about copying over the entire datadir in which case the statement about the blockchain files applies to them as well. Same goes for peers.dat, although that can be rebuilt extremely quickly so it's not something you really need to worry about.