<p>Knowing your private and public keys is enough to be a backup of that address. If you only have one address all you would have to do is create a new wallet and import that private key.</p>

<p>Why backup the entire wallet.dat then?</p>

<ul>
<li><p>Because restoring the wallet.dat saves you the step of importing the keys from the command line. Most people find it easier to backup a file than understand the details of keys and addresses.</p></li>
<li><p>Because many users have a lot of addresses. If you have a hundred addresses, restoring one wallet file is quicker than restoring each private key.</p></li>
<li><p>Because of change addresses. The default client ends up creating a lot of change addresses automatically. You may think you know your private/public key pair, but if you've conducted some transactions in the standard client it is likely that you also have a bunch of change addresses that you aren't directly aware of and aren't displayed in the GUI.</p></li>
<li><p>Because of the address buffer. The standard client keeps a buffer of 100 addresses that it intends to use. This means that even restoring a wallet.dat can sometimes save you even if you don't have an up-to-date backup of your wallet. (Because the transactions/addresses that aren't in your wallet are probably in that buffer of addresses.)</p></li>
</ul>

<p>In short, yes, the private/public keypairs are the important thing and if you know them (say by keeping them in a paper wallet or encrypted somewhere) you can recreate your wallet. But there are lots of mistakes you can make (such as forgetting change addresses) if you are manually tracking keys. If you aren't certain what you are doing, you may find backing up the wallet.dat as the easiest approach.</p>

CC BY-SA 3.0
2013-05-09T20:56:21.920Z
2013-05-09T20:56:21.920Z
David Ogren
<p>You can generate your wallet from your private key by following the directions at: <a href="https://en.bitcoin.it/wiki/How_to_import_private_keys_v7%2B" rel="nofollow">https://en.bitcoin.it/wiki/How_to_import_private_keys_v7%2B</a> .</p>

<p>You could also send an (encrypted) wallet to your friends, or store it on Dropbox.  The encryption should be more than adequate.</p>

CC BY-SA 3.0
2013-05-09T16:24:49.610Z
Thanks! So where is the point in doing a backup of the wallet.dat if I need only the public and private key? Should I either backup my wallet.dat OR printing out my public and private key or doing both?
user4918
CC BY-SA 3.0
2013-05-09T16:49:33.773Z
Backing up your wallet.dat would be more convenient than printing out your public key.  Personally, if I had a lot of Bitcoins, I'd do both.  That'd be the most reliable.
Julian Goldsmith
CC BY-SA 3.0
2013-05-09T15:31:54.400Z
2013-05-09T15:31:54.400Z
Julian Goldsmith
<p>I invested in bitcoins and unfortunately I have problems to understand the system. Perhaps you can answer me the following questions?</p>

<p>1.a) I know my public and my private key. Do I still have to backup my wallet.dat?</p>

<p>1b) If I need the wallet.dat: There is no point in saving my public and private key, if I need the wallet.dat anyways, right?</p>

<ol>
<li><p>If I secure my wallet.dat with a strong password, can I put the wallet.dat just on dropbox and send it to a few friends or do I have to keep the file more private?</p></li>
<li><p>Is the decripting function of Bitcoin-QT enough?</p></li>
<li><p>Am I okay with these actionsteps:</p></li>
<li><p>Encrypting my wallet with Bitcoin-QT and writing my password on paper</p></li>
<li>Writing my public key and private key on paper</li>
<li>Sending the bitcoins from mtgox to my public address</li>
<li>Using the backup option of Bitcoin-QT and send the backup to dropbox + a friend I trust</li>
</ol>

<p>Please let me know if I need more steps or I can take a step out.</p>

<p>Thanks!</p>

CC BY-SA 3.0
2013-05-13T01:22:13.570Z
The private key is all that is needed.  The public key is derived from the private key, so it needn't be backed up.  It actually isn't exposed nearly anywhere either.  A Bitcoin address is derived from a public key.
Stephen Gornick
<private-key><backup><public-key><wallet.dat>
Public Key + Private Key enough to backup?
user4918
# Public Key + Private Key enough to backup?

(Asked by: username_0 on 2013-05-09)

I invested in bitcoins and unfortunately I have problems to understand the system. Perhaps you can answer me the following questions?

1.a) I know my public and my private key. Do I still have to backup my wallet.dat?

1b) If I need the wallet.dat: There is no point in saving my public and private key, if I need the wallet.dat anyways, right?

1. If I secure my wallet.dat with a strong password, can I put the wallet.dat just on dropbox and send it to a few friends or do I have to keep the file more private?
2. Is the decripting function of Bitcoin-QT enough?
3. Am I okay with these actionsteps:
4. Encrypting my wallet with Bitcoin-QT and writing my password on paper
5. Writing my public key and private key on paper
6. Sending the bitcoins from mtgox to my public address
7. Using the backup option of Bitcoin-QT and send the backup to dropbox + a friend I trust

Please let me know if I need more steps or I can take a step out.

Thanks!

**Tags:** private-key, backup, public-key, wallet.dat

> **Comments:**
> **username_1**: The private key is all that is needed.  The public key is derived from the private key, so it needn't be backed up.  It actually isn't exposed nearly anywhere either.  A Bitcoin address is derived from a public key.  

---

## 2 answers

### Answer by username_2 on 2013-05-09. Score: 7

Knowing your private and public keys is enough to be a backup of that address. If you only have one address all you would have to do is create a new wallet and import that private key.

Why backup the entire wallet.dat then?

* Because restoring the wallet.dat saves you the step of importing the keys from the command line. Most people find it easier to backup a file than understand the details of keys and addresses.
* Because many users have a lot of addresses. If you have a hundred addresses, restoring one wallet file is quicker than restoring each private key.
* Because of change addresses. The default client ends up creating a lot of change addresses automatically. You may think you know your private/public key pair, but if you've conducted some transactions in the standard client it is likely that you also have a bunch of change addresses that you aren't directly aware of and aren't displayed in the GUI.
* Because of the address buffer. The standard client keeps a buffer of 100 addresses that it intends to use. This means that even restoring a wallet.dat can sometimes save you even if you don't have an up-to-date backup of your wallet. (Because the transactions/addresses that aren't in your wallet are probably in that buffer of addresses.)

In short, yes, the private/public keypairs are the important thing and if you know them (say by keeping them in a paper wallet or encrypted somewhere) you can recreate your wallet. But there are lots of mistakes you can make (such as forgetting change addresses) if you are manually tracking keys. If you aren't certain what you are doing, you may find backing up the wallet.dat as the easiest approach.


---

### Answer by username_3 on 2013-05-09. Score: 2

You can generate your wallet from your private key by following the directions at: <https://en.bitcoin.it/wiki/How_to_import_private_keys_v7%2B> .

You could also send an (encrypted) wallet to your friends, or store it on Dropbox. The encryption should be more than adequate.

> **Comments:**
> **username_0**: Thanks! So where is the point in doing a backup of the wallet.dat if I need only the public and private key? Should I either backup my wallet.dat OR printing out my public and private key or doing both?  
> **username_3**: Backing up your wallet.dat would be more convenient than printing out your public key.  Personally, if I had a lot of Bitcoins, I'd do both.  That'd be the most reliable.  

---

