Bitcoin Forum
September 27, 2016, 01:54:38 AM *
News: Due to DDoS attacks, there may be periodic downtime.
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: Block files, database files, and other stuff  (Read 2944 times)
kongming208
Newbie
*
Offline Offline

Activity: 3


View Profile
November 05, 2010, 10:43:54 PM
 #1

Hi,

Sorry if this is a FAQ, but I didn't find the answer after a few searches.

I'm currently running bitcoin on one machine, and I see in my data directory:

./addr.dat
./blk0001.dat
./blkindex.dat
./database/log.0000000017
./__db.001
./__db.002
./__db.003
./__db.004
./__db.005
./__db.006
./db.log
./debug.log
./.lock
./wallet.dat

If I wanted to run bitcoin on multiple machines on my LAN, and I wanted to copy the block chain so that it doesn't have to re-download, which files do I need to copy? I'm guessing
./blk0001.dat
./blkindex.dat
are necessary, but what about
./__db.001
./__db.002
./__db.003
./__db.004
./__db.005
./__db.006

And the ./database/log.0000000017, db.log, debug.log, and other files don't need to be copied, yes?

Thanks for any help!

Bitcoin donations: 197h1deYhxP5cQ8vKgAsQAhfvg1y3sBPy5
GPG key ID: 90A446C1
GPG fingerprint: 0F56 0641 52F7 0F1E 368F  656C 7E15 4647 90A4 46C1
1474941278
Hero Member
*
Offline Offline

Posts: 1474941278

View Profile Personal Message (Offline)

Ignore
1474941278
Reply with quote  #2

1474941278
Report to moderator
1474941278
Hero Member
*
Offline Offline

Posts: 1474941278

View Profile Personal Message (Offline)

Ignore
1474941278
Reply with quote  #2

1474941278
Report to moderator
1474941278
Hero Member
*
Offline Offline

Posts: 1474941278

View Profile Personal Message (Offline)

Ignore
1474941278
Reply with quote  #2

1474941278
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1474941278
Hero Member
*
Offline Offline

Posts: 1474941278

View Profile Personal Message (Offline)

Ignore
1474941278
Reply with quote  #2

1474941278
Report to moderator
1474941278
Hero Member
*
Offline Offline

Posts: 1474941278

View Profile Personal Message (Offline)

Ignore
1474941278
Reply with quote  #2

1474941278
Report to moderator
1474941278
Hero Member
*
Offline Offline

Posts: 1474941278

View Profile Personal Message (Offline)

Ignore
1474941278
Reply with quote  #2

1474941278
Report to moderator
MoonShadow
Legendary
*
Offline Offline

Activity: 1666



View Profile
November 05, 2010, 11:05:30 PM
 #2

If I wanted to run bitcoin on multiple machines on my LAN, and I wanted to copy the block chain so that it doesn't have to re-download, which files do I need to copy? I'm guessing
./blk0001.dat
./blkindex.dat
are necessary, but what about

I've actually copied the blockchain before, and the two above files were all that I needed to get it to work.  I'm pretty sure that the others are checkpointing files, and it's not a bad idea to let the new client checkpoint the entire blockchain after a copy anyway.

I'm not certain, however, as that client was a while ago, and predates the checkpointing upon startup thing.

"The powers of financial capitalism had another far-reaching aim, nothing less than to create a world system of financial control in private hands able to dominate the political system of each country and the economy of the world as a whole. This system was to be controlled in a feudalist fashion by the central banks of the world acting in concert, by secret agreements arrived at in frequent meetings and conferences. The apex of the systems was to be the Bank for International Settlements in Basel, Switzerland, a private bank owned and controlled by the world's central banks which were themselves private corporations. Each central bank...sought to dominate its government by its ability to control Treasury loans, to manipulate foreign exchanges, to influence the level of economic activity in the country, and to influence cooperative politicians by subsequent economic rewards in the business world."

- Carroll Quigley, CFR member, mentor to Bill Clinton, from 'Tragedy And Hope'
BitLex
Hero Member
*****
Offline Offline

Activity: 588


View Profile WWW
November 06, 2010, 12:12:18 AM
 #3

i copy blockchains back and forth quite often and don't copy anything else than those 2 files, blk0001.dat & blkindex.dat, never bothered with anything else.
works fine for me so far, so i guess it's alright.
i think (and please correct me if i'm worng) anything else is client-related anyway and your gonna use the copy for another client, which has/creates its own keys/hashes and DB.

theymos
Administrator
Legendary
*
Offline Offline

Activity: 2422


View Profile
November 06, 2010, 12:21:58 AM
 #4

The other files are journaling files used for database recovery after a computer/Bitcoin crash. You can delete them if you're sure the database is not in an inconsistent state.

1NXYoJ5xU91Jp83XfVMHwwTUyZFK64BoAD
thedrs
Jr. Member
*
Offline Offline

Activity: 33



View Profile
May 26, 2011, 07:50:21 PM
 #5

this should be in the FAQ...
Gavin Andresen
Legendary
*
Offline Offline

Activity: 1652


Chief Scientist


View Profile WWW
May 27, 2011, 08:18:02 AM
 #6

this should be in the FAQ...
If only the FAQ was a wiki that anybody could edit, then thedrs could add it him or herself...

(hey, wait a minute!  it IS a wiki!)

How often do you get the chance to work on a potentially world-changing project?
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!