<p>Find your local blockchain:</p>

<pre><code>cd ~/.bitcoin/blocks
</code></pre>

<p>Or, to bootstrap testnet, find your local testnet blockchain:</p>

<pre><code>cd ~/.bitcoin/testnet3/blocks
</code></pre>

<p>Concatenate all your <code>blkxxxxx.dat</code> files and place the result in <code>bootstrap.dat</code>:</p>

<pre><code>cat blk* &gt; bootstrap.dat
</code></pre>

<p><strong>Warning:</strong> Using <code>tar -cf</code> (as instructed by <a href="https://bitcoin.stackexchange.com/a/34053/18611">this answer</a>) did not work for me.  I'm importing from bitcoind into <a href="https://github.com/conformal/btcd" rel="nofollow noreferrer">btcd</a>.</p>

CC BY-SA 3.0
2014-12-29T04:28:11.803Z
2014-12-29T05:22:12.940Z
2017-04-13T12:47:33.583Z
lovelace
<p>It should be as easy as</p>

<p>cd /home/USER/.bitcoin/blocks</p>

<p>tar -cf bootstrap.dat blk*</p>

<p>For dogecoin just change the directory to match</p>

CC BY-SA 3.0
2014-12-16T00:38:57.530Z
Pretty sure that just creates a tarfile with the blk files in it.
Nick ODell
CC BY-SA 3.0
2014-12-21T04:15:38.853Z
ya bitcoind seems to recognize that format just fine. might not be a true bootstrap but i have used it successfully on older bitcoin clones. Might not work the same these days. Ill test tonight and update my post as needed
Mullick
CC BY-SA 3.0
2015-05-12T08:18:11.570Z
@Mullick: Were you able to confirm your solution?
Murch
CC BY-SA 3.0
2014-12-15T10:03:42.100Z
2014-12-15T10:03:42.100Z
Mullick
<p>I would like to generate a Bitcoin and Dogecoin (qt) bootstrap file on my ubuntu machine. Is there any way to do this? I know it's possible with Windows but I'm on Ubuntu.
Thanks.</p>

CC BY-SA 3.0
2015-05-12T08:17:22.480Z
possible duplicate: [Creating my own bootstrap.dat?](http://bitcoin.stackexchange.com/q/10381/5406)
Murch
<ubuntu><linux><dogecoin><bootstrap.dat>
How do I generate a bootstrap file on Ubuntu?
mrbear235
# How do I generate a bootstrap file on Ubuntu?

(Asked by: username_0 on 2014-12-15)

I would like to generate a Bitcoin and Dogecoin (qt) bootstrap file on my ubuntu machine. Is there any way to do this? I know it's possible with Windows but I'm on Ubuntu.
Thanks.

**Tags:** ubuntu, linux, dogecoin, bootstrap.dat

> **Comments:**
> **username_1**: possible duplicate: [Creating my own bootstrap.dat?](http://bitcoin.stackexchange.com/q/10381/5406)  

---

## 2 answers

### Answer by username_2 on 2014-12-29. Score: 2 | Accepted answer

Find your local blockchain:
cd ~/.bitcoin/blocks

Or, to bootstrap testnet, find your local testnet blockchain:
cd ~/.bitcoin/testnet3/blocks

Concatenate all your blkxxxxx.dat files and place the result in bootstrap.dat:
cat blk* > bootstrap.dat

Warning: Using tar -cf (as instructed by this answer) did not work for me.  I'm importing from bitcoind into btcd.


---

### Answer by username_3 on 2014-12-15. Score: 0

It should be as easy as

cd /home/USER/.bitcoin/blocks

tar -cf bootstrap.dat blk\*

For dogecoin just change the directory to match

> **Comments:**
> **username_4**: Pretty sure that just creates a tarfile with the blk files in it.  
> **username_3**: ya bitcoind seems to recognize that format just fine. might not be a true bootstrap but i have used it successfully on older bitcoin clones. Might not work the same these days. Ill test tonight and update my post as needed  
> **username_1**: @username_3: Were you able to confirm your solution?  

---

