<p>By default, Bitcoin Core creates 100 addresses the first time it starts, and tries to keep 100 not-yet-used keys in wallet.dat 'keypool' (when you unlock the wallet to make a payment it will generate more).</p>

<p>So you do not need to backup continuously. The 'getinfo' RPC command will tell you the time when the oldest not-yet-used key was generated ('keypoololdest').</p>

<p>Any wallet backup created after the keypoololdest time will be good enough to recover all of the bitcoins sent to your wallet, but I'd suggest you figure out about how long it will take you to send and receive 100 transactions (e.g. two per day would be 50 days) and then backup about twice as often as that (maybe once a month if you're making 2 transactions per day).</p>

<p>Be sure your backups are encrypted with a strong passphrase, and make sure you store them someplace off-site that is safe.</p>

<p>And for long-term storage of more than one or two bitcoins, use a hardware or paper wallet.</p>

CC BY-SA 3.0
2015-01-18T18:52:01.310Z
thanks a lot for your answer. Not only it is very detailed but it also provided me with general guidance about backups, and addresses generation. Further reading on the wiki is on my ToDo List.
Dhuum
CC BY-SA 3.0
2015-02-02T08:46:01.263Z
when I tried to watch the "keypoololdest" after your answer I noticed the following : it was 1392447127 which is Sat, 15 Feb 2014 06:52:07 GMT , I created new address then it goes 1392449568 which is Sat, 15 Feb 2014 07:32:48 GMT , I'm wondering should the time change to be today as it is too old (like one year ago) . and if I took a backup today is it quite efficient until the "keypoololdest" changed to be more than 1422866692 (Mon, 02 Feb 2015 08:44:52 GMT) which is the date of the backup ?
Mohamed Farrag
CC BY-SA 3.0
2015-01-17T22:25:34.877Z
2015-01-17T22:25:34.877Z
gavinandresen
<p>I'm having little problem here, trying to figure out the safest way to backup my wallet.dat to make sure that no BTC may be lost in case of recovery.</p>

<p>I'm not sure how the process of adding new addresses may affect a, say, a recently created backup.</p>

<p>So, basically, do I need to backup continuously to make sure that no BTC are lost? do I need to backup after each new address is created?</p>

<p>Can you provide me with some general golden rules when backing up wallet.dat?</p>

CC BY-SA 3.0
2015-01-17T19:14:43.197Z
https://en.bitcoin.it/wiki/Key_pool
Nick ODell
<bitcoin-core><backup><keypool>
How many addresses does my wallet.dat contain? Do I need to make a new backup every time I make a transaction?
Dhuum
# How many addresses does my wallet.dat contain? Do I need to make a new backup every time I make a transaction?

(Asked by: username_0 on 2015-01-17)

I'm having little problem here, trying to figure out the safest way to backup my wallet.dat to make sure that no BTC may be lost in case of recovery.

I'm not sure how the process of adding new addresses may affect a, say, a recently created backup.

So, basically, do I need to backup continuously to make sure that no BTC are lost? do I need to backup after each new address is created?

Can you provide me with some general golden rules when backing up wallet.dat?

**Tags:** bitcoin-core, backup, keypool

> **Comments:**
> **username_1**: https://en.bitcoin.it/wiki/Key_pool  

---

## 1 answers

### Answer by username_2 on 2015-01-17. Score: 13 | Accepted answer

By default, Bitcoin Core creates 100 addresses the first time it starts, and tries to keep 100 not-yet-used keys in wallet.dat 'keypool' (when you unlock the wallet to make a payment it will generate more).

So you do not need to backup continuously. The 'getinfo' RPC command will tell you the time when the oldest not-yet-used key was generated ('keypoololdest').

Any wallet backup created after the keypoololdest time will be good enough to recover all of the bitcoins sent to your wallet, but I'd suggest you figure out about how long it will take you to send and receive 100 transactions (e.g. two per day would be 50 days) and then backup about twice as often as that (maybe once a month if you're making 2 transactions per day).

Be sure your backups are encrypted with a strong passphrase, and make sure you store them someplace off-site that is safe.

And for long-term storage of more than one or two bitcoins, use a hardware or paper wallet.

> **Comments:**
> **username_0**: thanks a lot for your answer. Not only it is very detailed but it also provided me with general guidance about backups, and addresses generation. Further reading on the wiki is on my ToDo List.  
> **username_3**: when I tried to watch the "keypoololdest" after your answer I noticed the following : it was 1392447127 which is Sat, 15 Feb 2014 06:52:07 GMT , I created new address then it goes 1392449568 which is Sat, 15 Feb 2014 07:32:48 GMT , I'm wondering should the time change to be today as it is too old (like one year ago) . and if I took a backup today is it quite efficient until the "keypoololdest" changed to be more than 1422866692 (Mon, 02 Feb 2015 08:44:52 GMT) which is the date of the backup ?  

---

