Take the 2-minute tour ×
Bitcoin Stack Exchange is a question and answer site for Bitcoin crypto-currency enthusiasts. It's 100% free, no registration required.

I used to run bitcoin on Ubuntu and I have a wallet with 1 coin in it.

I took a backup of my ~/.bitcoin directory which includes a wallet.dat file.

Now I'm running on a mac, using the bitcoint-qt client.

How do I get back the money from that wallet?

Can I just copy it over the existing wallet that the mac client generated?

Is there a way to run a command line client and point to my wallet then transfer coins from it to the new wallet?

share|improve this question
    
It worked fine for me. Thank you hasen j. –  user5026 May 14 '13 at 15:05
1  
I'm wondering why you can't just send the coins from your original wallet to your new one? –  T9b Jun 9 '13 at 9:32
    
@T9b yea that's a good point. I have no idea why I didn't do that back then! I can't remember if there was some specific reason or if I simply did not think of it –  hasenj Jun 15 '13 at 6:32
add comment

2 Answers

I got it to work by simply copying the file over.

An important point to notice if you intend to follow this suggestion:

My mac wallet had 0 coins

If your mac wallet has coins, then don't follow this solution.

First I shut down the bitcoin-qt client. Not sure if this step is necessary but I think it's safer.

Then I copied the wallet.dat file over to

~/Library/Application Support/Bitcoin/wallet.dat

Then start the bitcoint-qt client again. It might take a bit longer to startup than usual. Don't panic and let it take its time.

Then you will see your coins in the client!

share|improve this answer
    
That is correct. You overwrite your wallet on the Mac, but like you mentioned, it had 0 coins. Never hurts to make a backup copy first before overwriting if you've ever used the walet. –  Stephen Gornick Aug 27 '12 at 0:08
    
As far as shutting down the client before copying the wallet, that is correct. You never want to copy data while an application that accesses it is open. –  Stephen Gornick Aug 27 '12 at 0:09
    
I'm on Linux, I exported the encrypted wallet.dat from Windows but I can't just overwrite it with the one Windows generated. it simply crashes with "Runaway exception, can't open wallet.dat, error 22" –  djechelon Apr 11 '13 at 8:35
add comment

You assumed that you have 0 bitcoins in your mac wallet but what happens if you own bitcoins in your mac wallet and you want to bring other bitcoins which had been backed up previously and stay in your offline wallet?

share|improve this answer
    
I suppose you can transfer the money by "paying" to yourself? –  hasenj Dec 2 '13 at 18:31
    
Please don't ask questions in the answer section of another question. Instead ask a new question and link this one if it helps to provide context. –  Murch Dec 3 '13 at 20:25
    
This is a very badly formulated answer. Let me try to paraphrase it: The answer is that yes, you can just copy it, but consider what will then happen to any bitcoins previously in the then overwritten wallet file on your Mac. Basically, if you just copy the old wallet to that file and do not back it up elsewhere, you are assuming that it has zero value to you (either zero bitcoins or only bitcoins you're happy to lose). –  pyramids Dec 8 '13 at 20:55
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.