<p>Restoring a wallet on a fresh machine:</p>

<ol>
<li>Start Bitcoin-Core (daemon or Qt), shut it down after it has started up (you only do that to create the necessary data directory)</li>
<li>Replace <code>wallet.dat</code> with your backed-up <code>wallet.dat</code> (see <a href="https://en.bitcoin.it/wiki/Data_directory" rel="noreferrer">https://en.bitcoin.it/wiki/Data_directory</a> if you can't find the data dir)</li>
<li>Startup Bitcoin-Core, wait until your node is in sync (can take a couple of hours/days)</li>
</ol>

<p><strong>If you have created the wallet with Bitcoin-Core >= 0.14 (HD Wallet).</strong></p>

<p>2a. Startup Bitcoin-Core (Qt/core), call <code>getnewaddress</code> 100-10000 times (depending on how many addresses you have created)
(This hopefully will go away in Core 0.15)</p>

CC BY-SA 3.0
2017-07-17T00:28:24.767Z
What does it mean: "call getnewaddress 100-10000 times"? How to do it on windows?
JavaRunner
CC BY-SA 3.0
2017-07-17T12:14:00.823Z
Call it via bitcoin-cli 10000 times (maybe write a script).
Jonas Schnelli
CC BY-SA 3.0
2017-09-29T13:41:04.157Z
Did `-rescan` option not work for 0.14? It does the job in 0.15.
nopara73
CC BY-SA 3.0
2017-04-06T12:44:40.983Z
2017-04-06T12:44:40.983Z
Jonas Schnelli
<p>I backed up my Bitcoin wallet on a drive for safety. Luck has it that my computer crashed. So now I downloaded Bitcoin Core, but do not how to retrieve my backup. Please help. thanks</p>

<bitcoin-core><wallet.dat><backup>
How do I retrieve my backed up wallet to Bitcoin Core?
Niel
# How do I retrieve my backed up wallet to Bitcoin Core?

(Asked by: username_0 on 2017-04-06)

I backed up my Bitcoin wallet on a drive for safety. Luck has it that my computer crashed. So now I downloaded Bitcoin Core, but do not how to retrieve my backup. Please help. thanks

**Tags:** bitcoin-core, wallet.dat, backup


---

## 1 answers

### Answer by username_1 on 2017-04-06. Score: 4

Restoring a wallet on a fresh machine:

1. Start Bitcoin-Core (daemon or Qt), shut it down after it has started up (you only do that to create the necessary data directory)
2. Replace `wallet.dat` with your backed-up `wallet.dat` (see <https://en.bitcoin.it/wiki/Data_directory> if you can't find the data dir)
3. Startup Bitcoin-Core, wait until your node is in sync (can take a couple of hours/days)

**If you have created the wallet with Bitcoin-Core >= 0.14 (HD Wallet).**

2a. Startup Bitcoin-Core (Qt/core), call `getnewaddress` 100-10000 times (depending on how many addresses you have created)
(This hopefully will go away in Core 0.15)

> **Comments:**
> **username_2**: What does it mean: "call getnewaddress 100-10000 times"? How to do it on windows?  
> **username_1**: Call it via bitcoin-cli 10000 times (maybe write a script).  
> **username_3**: Did `-rescan` option not work for 0.14? It does the job in 0.15.  

---

