Bitcoin Forum

Other => Beginners & Help => Topic started by: txoomy on March 24, 2013, 04:08:07 AM



Title: restore wallet.dat
Post by: txoomy on March 24, 2013, 04:08:07 AM
Here's what I did:

Installed (Mac)

- I installed Bitcoin-Qt (v0.8.1-beta)
- I let the application synchronize
- I then encrypted the wallet with a password
- I shut down Bitcoin-Qt
- I moved the wallet.dat to an external drive

I bought one bitcoin. I see it in my wallet.

Uninstalled

- I removed/uninstalled Bitcoin-Qt
- I deleted the Bitcoin directory from ~Library...
- I securely emptied my trash (there should be no reference to Bitcoin on my computer)

I plan on receiving coins and checking my balance online, from this point on, at blockexplorer.

If I want to sell/send my bitcoins one day, I'll need to restore my wallet.dat file.

To do this, do I just need to re-install Bitcoin-Qt, let it sync, shut it down, and then overwrite the wallet.dat with my back up from my external drive? When I turn Bitcoin-Qt back on, will I see my wallet and be able to sell/sent?

Thanks



Title: Re: restore wallet.dat
Post by: zedicus on March 24, 2013, 04:25:21 AM
Man youre doing too much...

 just install bitcoin let it sync .. do your transactions then turn it off and encrypt the wallet.dat with maybe --->>>  http://lrzip.kolivas.org/


Copy/move the wallet to a usb drive ..


Next time you want to use bitcoin.. First decrypt the wallet.dat and then turn on bitcoin and use it..

When done turn it off and encrypt the wallet.dat, and move or copy it to USB or secure location.



If youre that noid just move the wallet after encryption to a USB like mentioned and just put it back after you decrytpt the next time you use bitcoin.

Use one of these from each group in your pass:

Lowercase: abcdefghijklmnopqrstuvwxyz
 Uppercase: ABCDEFGHIJKLMNOPQRSTUVWXYZ
 Number: 1234567890
 Symbol: `~!@#$%^&*()-_=+\|[{]};:'",<.>/?

:)



Title: Re: restore wallet.dat
Post by: txoomy on March 24, 2013, 01:12:38 PM
The thing is I won't be using Bitcoin on my computer to sell, so I don't need to keep it on there at all. Maybe in a year or so (who knows) I'll want to load up my wallet and sell.

I just want to remove it and then restore it later.

My question is:

To do this, do I just need to re-install Bitcoin-Qt, let it sync, shut it down, and then overwrite the wallet.dat with my back up from my external drive? When I turn Bitcoin-Qt back on, will I see my wallet and be able to sell/sent?


Title: Re: restore wallet.dat
Post by: Endgame on March 24, 2013, 01:26:28 PM
To do this, do I just need to re-install Bitcoin-Qt, let it sync, shut it down, and then overwrite the wallet.dat with my back up from my external drive? When I turn Bitcoin-Qt back on, will I see my wallet and be able to sell/sent?

Yes that will work fine.


Title: Re: restore wallet.dat
Post by: Phalex on March 24, 2013, 01:52:41 PM
thanks for the info guys, the should be a basics thread somewhere..


Title: Re: restore wallet.dat
Post by: txoomy on March 24, 2013, 03:06:32 PM
To do this, do I just need to re-install Bitcoin-Qt, let it sync, shut it down, and then overwrite the wallet.dat with my back up from my external drive? When I turn Bitcoin-Qt back on, will I see my wallet and be able to sell/sent?

Yes that will work fine.

Thanks. I'll test it out.

I guess in old versions of Bitcoin-Qt you had to -resync or something after copying back in wallet.dat.

I just wanted to make sure you don't have to do that now.


Title: Re: restore wallet.dat
Post by: Fressac on March 24, 2013, 03:31:11 PM
I guess in old versions of Bitcoin-Qt you had to -resync or something after copying back in wallet.dat.

I just wanted to make sure you don't have to do that now.

That was my understanding too. I'm glad to hear that only the wallet.dat file is what acts as the container for the "crown jewels" and that it is as simple as keeping that file well protected. Will test it out to confirm for myself that all works as described in this thread.

Thanks everyone for your questions/input.


Title: Re: restore wallet.dat
Post by: txoomy on March 24, 2013, 09:17:21 PM
I guess in old versions of Bitcoin-Qt you had to -resync or something after copying back in wallet.dat.

I just wanted to make sure you don't have to do that now.

That was my understanding too. I'm glad to hear that only the wallet.dat file is what acts as the container for the "crown jewels" and that it is as simple as keeping that file well protected. Will test it out to confirm for myself that all works as described in this thread.

Thanks everyone for your questions/input.

Please share your results. Thanks.


Title: Re: restore wallet.dat
Post by: Fressac on March 26, 2013, 04:20:36 PM
That was my understanding too. I'm glad to hear that only the wallet.dat file is what acts as the container for the "crown jewels" and that it is as simple as keeping that file well protected. Will test it out to confirm for myself that all works as described in this thread.

Thanks everyone for your questions/input.
Please share your results. Thanks.
Worked as expected. I created two wallet.dat files with different public/private keys stored in them and swapped them around at will. Main thing was to shutdown Bitcoin-Qt first, then swap the files, then start it up again.

Some other stuff I tested on two different machines (both OS X running 0.8.0 (haven't upgraded to 0.8.1 yet):

Downloaded entire blockchain on machine A and created a wallet on it too. Installed Bitcoin-Qt on machine B but DID NOT start it up. Instead I first copied the whole data directory (~/Library/Application Support/Bitcoin) from A to B. Then booted it up on B and it synced the last couple of blocks and was up and running nicely without having to sync the whole blockchain from scratch (and the keys from my wallet where there too). So was easy to port everything over to another machine and be up and running quickly.


Title: Re: restore wallet.dat
Post by: coinomaly on March 26, 2013, 08:14:07 PM
why are people doing this? is it because of btc viruses, or something? or are you just paranoid?


Title: Re: restore wallet.dat
Post by: Fressac on March 26, 2013, 08:17:18 PM
why are people doing this? is it because of btc viruses, or something? or are you just paranoid?
Disaster recovery planning.


Title: Re: restore wallet.dat
Post by: txoomy on March 27, 2013, 09:45:39 PM
Thanks for the info.. very helpful.


Title: Re: restore wallet.dat
Post by: chufchuf on April 13, 2013, 12:47:17 AM
But encrypting a wallet.dat creates 100 new keys in a keypool, so I'm not so sure it's a good plan to decrypt it for use, then encrypt it for storage. If you google things like encrypted wallets bitcointalk, you'll find people complaining about this. I could have sworn I read people dealing with wallets that had completely different addresses encrypted compared to decrypted.

Also, if you're going to use a wallet.dat for offline use, a wallet.dat from bitcoin-qt isn't a deterministic wallet, so once 100 addresses are used up, and they will be due to change, the offline won't be keeping up with the keys getting created online, or something like that. It's quite complicated, I still don't understand it myself.


Title: Re: restore wallet.dat
Post by: Fressac on April 15, 2013, 05:53:44 PM
But encrypting a wallet.dat creates 100 new keys in a keypool, so I'm not so sure it's a good plan to decrypt it for use, then encrypt it for storage. If you google things like encrypted wallets bitcointalk, you'll find people complaining about this. I could have sworn I read people dealing with wallets that had completely different addresses encrypted compared to decrypted.

I don't see how encrypting a wallet causes new keys to be created. Can you provide a reference to specific examples of this being discussed? I could not surface anything in google on this with the terms you suggested above.

Quote
Also, if you're going to use a wallet.dat for offline use, a wallet.dat from bitcoin-qt isn't a deterministic wallet, so once 100 addresses are used up, and they will be due to change, the offline won't be keeping up with the keys getting created online, or something like that. It's quite complicated, I still don't understand it myself.

Well, you should backup wallet.dat more frequently if you are using it for a lot of payments and therefore receiving a lot of change, which forces new keys to be generated as you burn through the first 100.

This is not an issue though if you are only using the wallet primarily for cold storage.


Title: Re: restore wallet.dat
Post by: andy-bc on April 15, 2013, 06:36:57 PM
But encrypting a wallet.dat creates 100 new keys in a keypool (...)

I believe you understand it wrong. The Bitcoin-qt client always keeps 100 addresses in reserve, regardless of the walet being encrypted or not.


Title: Re: restore wallet.dat
Post by: IIIXLRIII on January 27, 2014, 10:36:13 AM
My Macbook crashed... reinstalled OS X
Recovered my QT client & .Dat - .Cvs documents from 16G SD card.
When I launched the app, my balance didn't load.
The wallet was encrypted. . .


Title: Re: restore wallet.dat
Post by: oxfardk on January 31, 2014, 05:19:40 PM
Bad luck IIIXLRIII. Did you try using the -rescan option ?


Title: Re: restore wallet.dat
Post by: Karen98 on January 31, 2014, 07:57:30 PM
make sure you have a second backup of wallet.dat