Does my Bitcoin-Qt wallet backup file have "everything" I need (private key)?

1

1

Does my Bitcoin-Qt wallet backup file have "everything" I need (private key)?

I mean, is that the file I would copy and store offsite in case my house burns down? Does it have my private key encoded in there?

obelia

Posted 2013-12-28T01:34:49.767

Reputation: 316

It is not clear to me which file you deem to be the "bitcoin-qt wallet backup file".Murch 2013-12-28T02:11:33.293

Potential duplicate of How should you backup your wallet?

Murch 2013-12-28T02:13:55.537

Answers

2

You only need to copy the wallet.dat to backup your private-keys. Do this while Bitcoin-Qt is not running. All other information will be deduced from the blockchain once you re-import the wallet.dat except any custom labels you have given to addresses.

Of course, if you encrypted the wallet.dat you will also have to remember the passphrase.

Murch

Posted 2013-12-28T01:34:49.767

Reputation: 41 609

So does the "Backup wallet..." menu item simply copy wallet.dat?obelia 2013-12-28T02:34:05.450

Oh, I was unaware that such a menu item had been introduced to Bitcoin-Qt. Now, from what I read it should be safe to use even while Bitcoin-Qt is running. (The manual copying of the wallet.dat should only be performed when Bitcoin-Qt is not running.) I would assume that it also just copies the wallet.dat, but I didn't find anything that specifically explained which files it stores. Will check it out later, going to be now though.Murch 2013-12-28T02:43:25.257

It's a litecoin-qt wallet - I just assumed it was the same as the bitcoin one.obelia 2013-12-28T03:10:06.397

The bitcoin-qt wallet also has "Backup Wallet..." menu option.obelia 2013-12-28T03:17:28.450

3

Your bitcoin.dat file contains your private key(s) as well, however I would suggest you extract them now for the addresses that hold money (if any), if empty then it's not much of a use, unless you accept donations there or have a business set up to that address.

How to extract your private keys for addresses that hold at least some money:

  1. Go to Help > Debug > Console
  2. Unlock your wallet if it is encrypted by calling: walletpassphrase YOURPASSWORD
  3. Call listreceivedbyaddress to get all not-empty addresses
  4. For each of them call the dumpprivkey MYADDRESS
  5. Call walletlock once you're through to lock back your wallet

George Kimionis

Posted 2013-12-28T01:34:49.767

Reputation: 2 824

What is to be gained by going extracting the keys this way when they're encoded in the .dat file? I mean, do I really want to have these keys extracted and unencoded?obelia 2013-12-28T02:11:25.603

That is the safest way around. The safest wallet is no wallet at all. All you really need is your private keys. As for me, I have no wallet for my big account. It's all a matter of choice, after all.George Kimionis 2013-12-28T02:33:01.907

but if the wallet is encrypted, isn't it safer than unencrypted keys?obelia 2013-12-28T02:37:38.423

All it takes for you to lose your bitcoins is a trojan that will upload your bitcoin.dat to the attacker and then record your keystrokes (keylogger) when your OS's focus is set to the bitcoin-qt.

Keep your bitcoin.dat on a removable media that gets stolen or you forget somewhere and your passphrase is ridiculously easy to guess, voila, your coins are gone.

On the other hand memorizing your (fat account's) key is only vulnerable to amnesia. If you can't memorize it, store it in a place that nobody knows what it is and what it's for and encrypt it with a password that you will remember. – George Kimionis 2013-12-28T04:26:48.553