<p>To avoid any problem,in your source computer backup your private keys </p>

<p>bitcoind dumpprivkey </p>

<p>to answer your question, By default Bitcoin will put its data here:</p>

<p>~/.bitcoin/</p>

<p>I think the wallet is located in a file wallet.dat(<a href="https://en.bitcoin.it/wiki/Data_directory#Linux" rel="nofollow">https://en.bitcoin.it/wiki/Data_directory#Linux</a>), so if you copy it, it will works.</p>

<p>fore a best security level, encrypt your wallet with a paraphrase before backaping it.</p>

CC BY-SA 3.0
2016-02-05T21:22:00.317Z
2016-02-05T21:22:00.317Z
Badr Bellaj
<p>I have an external drive where at some point I did a complete backup of my (linux) home directory.</p>

<p>There's a directory <code>.bitcoin</code>.</p>

<p>I now have a computer, and I just installed <code>bitcoin-qt</code> and other stuff. I started it and it generated a new receiver address.</p>

<p>If I copy the old <code>.bitcoin</code> directory from the external drive to my current new home, will it work?</p>

CC BY-SA 3.0
2016-02-05T16:59:22.173Z
I don't have any coins there, but I run a blog and I installed a wordpress plugin there some time ago which would publish a bitcoin address, in order to accept BTC donations. I could just change that address but I wondered.
unsafe_where_true
CC BY-SA 3.0
2016-02-05T17:53:09.460Z
hmmm, after my own question here http://bitcoin.stackexchange.com/questions/42773/storing-bitcoins-database-directory-on-an-external-drive I should be able to have an answer myself: actually running the whole wallet on the external DB :)
unsafe_where_true
<wallet><linux>
Restore a wallet from an external drive?
unsafe_where_true
# Restore a wallet from an external drive?

(Asked by: username_0 on 2016-02-05)

I have an external drive where at some point I did a complete backup of my (linux) home directory.

There's a directory `.bitcoin`.

I now have a computer, and I just installed `bitcoin-qt` and other stuff. I started it and it generated a new receiver address.

If I copy the old `.bitcoin` directory from the external drive to my current new home, will it work?

**Tags:** wallet, linux

> **Comments:**
> **username_0**: I don't have any coins there, but I run a blog and I installed a wordpress plugin there some time ago which would publish a bitcoin address, in order to accept BTC donations. I could just change that address but I wondered.  
> **username_0**: hmmm, after my own question here http://bitcoin.stackexchange.com/questions/42773/storing-bitcoins-database-directory-on-an-external-drive I should be able to have an answer myself: actually running the whole wallet on the external DB :)  

---

## 1 answers

### Answer by username_1 on 2016-02-05. Score: 1 | Accepted answer

To avoid any problem,in your source computer backup your private keys

bitcoind dumpprivkey

to answer your question, By default Bitcoin will put its data here:

~/.bitcoin/

I think the wallet is located in a file wallet.dat(<https://en.bitcoin.it/wiki/Data_directory#Linux>), so if you copy it, it will works.

fore a best security level, encrypt your wallet with a paraphrase before backaping it.


---

