<p>I changed the path of <code>datadir</code> in <strong>bitcoin.conf</strong> from <strong>.bitcoin</strong> directory to somewhere else.</p>
<p>Now that I need to backup my blockchain data, I want to have both <strong>.bitcoin</strong> and blockchain data together.</p>
<p>Assuming all bitcoin-core services are off, How should move the blockchain data properly?</p>
<h5>datadir contents:</h5>
<pre><code>==== Files ====
anchors.dat
banlist.dat
debug.log
fee_estimates.dat
.lock
mempool.dat
nano.save
peers.dat
settings.json
.swp

==== Folders ====
blocks
chainstate
indexes
wallets

</code></pre>
<h5>.bitcoin contents:</h5>
<pre><code>==== Files ====
anchors.dat
banlist.dat
bitcoin.conf
debug.log
fee_estimates.dat
.lock
mempool.dat
peers.dat
settings.json

==== Folders ====
blocks
chainstate
wallets

</code></pre>

CC BY-SA 4.0
2021-08-13T12:13:18.610Z
Why don't you make a symbolic link from `datadir/blocks` to `.bitcoin/blocks` (assuming you are not using Windows)?
Zenul_Abidin
CC BY-SA 4.0
2021-08-13T14:58:23.093Z
@Zenul_Abidin I want to backup on an NTFS external hard drive and I want it all to be together
SReza S
<bitcoin-core><blockchain><bitcoind><bitcoin-cli><bitcoin.conf>
How to merge the datadir with .bitcoin directory?
SReza S
# How to merge the datadir with .bitcoin directory?

(Asked by: username_0 on 2021-08-13)

I changed the path of datadir in bitcoin.conf from .bitcoin directory to somewhere else.
Now that I need to backup my blockchain data, I want to have both .bitcoin and blockchain data together.
Assuming all bitcoin-core services are off, How should move the blockchain data properly?
datadir contents:
==== Files ====
anchors.dat
banlist.dat
debug.log
fee_estimates.dat
.lock
mempool.dat
nano.save
peers.dat
settings.json
.swp

==== Folders ====
blocks
chainstate
indexes
wallets


.bitcoin contents:
==== Files ====
anchors.dat
banlist.dat
bitcoin.conf
debug.log
fee_estimates.dat
.lock
mempool.dat
peers.dat
settings.json

==== Folders ====
blocks
chainstate
wallets

**Tags:** bitcoin-core, blockchain, bitcoind, bitcoin-cli, bitcoin.conf

> **Comments:**
> **username_1**: Why don't you make a symbolic link from `datadir/blocks` to `.bitcoin/blocks` (assuming you are not using Windows)?  
> **username_0**: @username_1 I want to backup on an NTFS external hard drive and I want it all to be together  

---

## 0 answers

