<p>I've just posted this in response to another question, but will post again as using bootstrap.dat is by far the best way to get a node up and running.</p>

<p>If you are downloading the blockchain from scratch I strongly recommend using the bootstrap.dat file, which allows your computer to simply verify blocks and import them without needing to download for days or even weeks on end.</p>

<p>The main issue with downloading from the network is that your client will only download one block at a time. It starts with block #1 and will not try to download anything except for block #2 after block #1 is verified, and so on. As you can imagine, with network latency this can become a rather painful process, as you have endured.</p>

<p>The bootstrap.dat file is widely available on bittorrent, torrent files can be found here: <a href="http://sourceforge.net/projects/bitcoin/files/Bitcoin/blockchain/" rel="nofollow">http://sourceforge.net/projects/bitcoin/files/Bitcoin/blockchain/</a></p>

<p>Direct torrent link: <a href="http://sourceforge.net/projects/bitcoin/files/Bitcoin/blockchain/bootstrap.dat.torrent/download" rel="nofollow">http://sourceforge.net/projects/bitcoin/files/Bitcoin/blockchain/bootstrap.dat.torrent/download</a></p>

<p>Downloading the bootstrap.dat file is just as secure as downloading the blockchain from peers, but since all the data is already there, the only latency you suffer between blocks is going to your hard drive and finding the next block.</p>

<p>You simply need to place the bootstrap.dat in your %appdata%\Bitcoin folder, (on linux/unix in your .bitcoin folder) the file will be renamed bootstrap.dat.old when the data import is complete. Using this it took me only 4 hours to catch up with the network, as opposed to the 1-2 weeks it took me before reformatting on the same computer.</p>

CC BY-SA 3.0
2015-02-04T21:12:39.540Z
Technical tidbit here, the bootstrap.dat file is actually just a concatenation of the blkXXXXX.dat files. You can literally build your own bootstrap.dat by doing something like `cat blk*.dat >~/bootstrap.dat`
Jimmy Song
CC BY-SA 3.0
2014-01-31T17:20:36.030Z
2014-01-31T17:20:36.030Z
Mark
<p>Copy these files to a exact Bitcoin Data folder on your Ubuntu (~/.bitcoin/) and then run client to download the latest blocks available. To synchronize with the blockchain run bitcoind with command -reindex <code>bitcoind -reindex</code>.</p>

CC BY-SA 3.0
2014-01-31T07:14:56.473Z
2015-02-04T11:08:48.447Z
2015-02-04T11:08:48.447Z
Marek
<p>On the Windows, I just replaced the directories and it worked fine.</p>

CC BY-SA 3.0
2013-09-19T17:42:19.903Z
Thanks, under linux seems to cause some issues. I'm using bitcoind, not bitcoin-qt but I don't think there are any differences.
Dan
CC BY-SA 3.0
2013-12-18T19:22:18.617Z
It should work if you copy the blocks and chainstate directories.  You should also copy wallet.dat if you want to keep your old wallet.
ScripterRon
CC BY-SA 3.0
2013-09-19T17:18:36.013Z
2015-02-04T20:23:29.983Z
2015-02-04T20:23:29.983Z
Eyal
<p>If you are not changing the program as such, you should be able to place the blockchain into the same folder as the original.  We do this quite successfully in Windows.  We have also (for other currencies) zipped up a blockchain and had it downloaded onto a client which had sync problems - in order to fix the problem.  Similarly it should work the same way for Linux.</p>

CC BY-SA 3.0
2014-01-31T17:26:14.703Z
I would strongly recommend using bootstrap.dat or creating your own as described here: http://bitcoin.stackexchange.com/questions/18568/how-do-you-generate-a-bootstrap-dat-file
Mark
CC BY-SA 3.0
2014-01-01T04:48:01.217Z
2014-01-01T04:48:01.217Z
John Lowe
<p>I've moved my bitcoind process to a new server, I made a backup of my .bitcoin folder (I'm using linux). I would really like to avoid downloading the whole blockchain again.</p>

<p>What's the right way to import all the blk00000.dat files? Is it enough to move the .bitcoin folder over the new one?</p>

<p>EDIT: I see the Loadblock option but I suppose I should run it after move the file outside.Anyone can confirm this? Is there a better way?</p>

CC BY-SA 3.0
2013-09-19T15:53:13.927Z
Unfortunately, I don't know that myself, but these questions cover similar topics and might help: [1](http://bitcoin.stackexchange.com/questions/4145/can-i-regenerate-blkindex-dat-from-blk0001-dat?rq=1), [2](http://bitcoin.stackexchange.com/questions/4594/can-the-blk0001-dat-and-blk0002-dat-files-be-deleted?rq=1), [3](http://bitcoin.stackexchange.com/questions/4663/how-do-you-import-block-chain-from-bitcoincharts?rq=1), [4](http://bitcoin.stackexchange.com/questions/799/can-i-download-the-whole-block-chain-from-somewhere?rq=1)
Murch
CC BY-SA 3.0
2013-10-19T19:30:19.923Z
Have you tried _--rescan_?
KJ O
CC BY-SA 3.0
2013-10-20T11:49:39.040Z
-rescan is for finding missing wallet transactions in your existing block chain. It doesn't affect the blockchain itself.
Pieter Wuille
CC BY-SA 4.0
2024-04-02T03:24:08.677Z
just copy chainstate and blocks to new server.
foolbear
<blockchain><bitcoind><block><synchronization>
importing all blkXXXXXX.dat
Dan
# importing all blkXXXXXX.dat

(Asked by: username_0 on 2013-09-10)

I've moved my bitcoind process to a new server, I made a backup of my .bitcoin folder (I'm using linux). I would really like to avoid downloading the whole blockchain again.

What's the right way to import all the blk00000.dat files? Is it enough to move the .bitcoin folder over the new one?

EDIT: I see the Loadblock option but I suppose I should run it after move the file outside.Anyone can confirm this? Is there a better way?

**Tags:** blockchain, bitcoind, block, synchronization

> **Comments:**
> **username_1**: Unfortunately, I don't know that myself, but these questions cover similar topics and might help: [1](http://bitcoin.stackexchange.com/questions/4145/can-i-regenerate-blkindex-dat-from-blk0001-dat?rq=1), [2](http://bitcoin.stackexchange.com/questions/4594/can-the-blk0001-dat-and-blk0002-dat-files-be-deleted?rq=1), [3](http://bitcoin.stackexchange.com/questions/4663/how-do-you-import-block-chain-from-bitcoincharts?rq=1), [4](http://bitcoin.stackexchange.com/questions/799/can-i-download-the-whole-block-chain-from-somewhere?rq=1)  
> **username_2**: Have you tried _--rescan_?  
> **username_3**: -rescan is for finding missing wallet transactions in your existing block chain. It doesn't affect the blockchain itself.  
> **username_4**: just copy chainstate and blocks to new server.  

---

## 4 answers

### Answer by username_5 on 2014-01-31. Score: 2 | Accepted answer

I've just posted this in response to another question, but will post again as using bootstrap.dat is by far the best way to get a node up and running.

If you are downloading the blockchain from scratch I strongly recommend using the bootstrap.dat file, which allows your computer to simply verify blocks and import them without needing to download for days or even weeks on end.

The main issue with downloading from the network is that your client will only download one block at a time. It starts with block #1 and will not try to download anything except for block #2 after block #1 is verified, and so on. As you can imagine, with network latency this can become a rather painful process, as you have endured.

The bootstrap.dat file is widely available on bittorrent, torrent files can be found here: <http://sourceforge.net/projects/bitcoin/files/Bitcoin/blockchain/>

Direct torrent link: <http://sourceforge.net/projects/bitcoin/files/Bitcoin/blockchain/bootstrap.dat.torrent/download>

Downloading the bootstrap.dat file is just as secure as downloading the blockchain from peers, but since all the data is already there, the only latency you suffer between blocks is going to your hard drive and finding the next block.

You simply need to place the bootstrap.dat in your %appdata%\Bitcoin folder, (on linux/unix in your .bitcoin folder) the file will be renamed bootstrap.dat.old when the data import is complete. Using this it took me only 4 hours to catch up with the network, as opposed to the 1-2 weeks it took me before reformatting on the same computer.

> **Comments:**
> **username_6**: Technical tidbit here, the bootstrap.dat file is actually just a concatenation of the blkXXXXX.dat files. You can literally build your own bootstrap.dat by doing something like `cat blk*.dat >~/bootstrap.dat`  

---

### Answer by username_7 on 2014-01-31. Score: 2

Copy these files to a exact Bitcoin Data folder on your Ubuntu (~/.bitcoin/) and then run client to download the latest blocks available. To synchronize with the blockchain run bitcoind with command -reindex `bitcoind -reindex`.


---

### Answer by username_8 on 2013-09-19. Score: 0

On the Windows, I just replaced the directories and it worked fine.

> **Comments:**
> **username_0**: Thanks, under linux seems to cause some issues. I'm using bitcoind, not bitcoin-qt but I don't think there are any differences.  
> **username_9**: It should work if you copy the blocks and chainstate directories.  You should also copy wallet.dat if you want to keep your old wallet.  

---

### Answer by username_10 on 2014-01-01. Score: 0

If you are not changing the program as such, you should be able to place the blockchain into the same folder as the original. We do this quite successfully in Windows. We have also (for other currencies) zipped up a blockchain and had it downloaded onto a client which had sync problems - in order to fix the problem. Similarly it should work the same way for Linux.

> **Comments:**
> **username_5**: I would strongly recommend using bootstrap.dat or creating your own as described here: http://bitcoin.stackexchange.com/questions/18568/how-do-you-generate-a-bootstrap-dat-file  

---

