<p>You can just create a backup of the <code>datadir</code> folder, which could be saved on another hard drive in case your node’s chain state becomes corrupted. In case of corruption, just copy the saved data into the appropriate folder, and your node will then sync from that point in history, rather than starting from scratch. The <code>datadir</code> can be specified in your <code>bitcoin.conf</code> file, but will otherwise be found in the default path.</p>
<p><strong>NOTE</strong>: you’ll want to stop the node before starting to copy the files. The normal operation of a node includes a lot of ~random reads and writes to the data directory files, so you’ll want to stop the node first to eliminate the chance of corrupting the data during the copy.</p>

CC BY-SA 4.0
2020-08-12T11:57:25.570Z
2020-08-12T11:57:25.570Z
chytrik
<p>You can simply copy and paste the <code>chainstate</code> and <code>blocks</code> folder to some other hard drive. But copy-pasting it back in the case of a failure will still take awhile, though not as long as a full IBD</p>

CC BY-SA 4.0
2020-08-12T16:53:49.967Z
2020-08-12T16:53:49.967Z
Sachin Meier
<p>My node recently had a data corruption and I had to re-sync it which was painful.</p>
<p>Presuming I don't use the node as a wallet, what's the easiest way to have a backup with the fully sync'd blockchain? Is it as simple as copying over the files from one external hard-drive over to the other?</p>

<full-node><backup>
What's the easiest way to create a backup node?
diddy
# What's the easiest way to create a backup node?

(Asked by: username_0 on 2020-08-12)

My node recently had a data corruption and I had to re-sync it which was painful.

Presuming I don't use the node as a wallet, what's the easiest way to have a backup with the fully sync'd blockchain? Is it as simple as copying over the files from one external hard-drive over to the other?

**Tags:** full-node, backup


---

## 2 answers

### Answer by username_1 on 2020-08-12. Score: 2

You can just create a backup of the `datadir` folder, which could be saved on another hard drive in case your node’s chain state becomes corrupted. In case of corruption, just copy the saved data into the appropriate folder, and your node will then sync from that point in history, rather than starting from scratch. The `datadir` can be specified in your `bitcoin.conf` file, but will otherwise be found in the default path.

**NOTE**: you’ll want to stop the node before starting to copy the files. The normal operation of a node includes a lot of ~random reads and writes to the data directory files, so you’ll want to stop the node first to eliminate the chance of corrupting the data during the copy.


---

### Answer by username_2 on 2020-08-12. Score: 0

You can simply copy and paste the `chainstate` and `blocks` folder to some other hard drive. But copy-pasting it back in the case of a failure will still take awhile, though not as long as a full IBD


---

