Data directory

From Bitcoin Wiki
Revision as of 05:05, 30 January 2011 by Theymos (talk | contribs) (Because this page is being linked to in sentences about finding the data directory, I copied the more verbose info about that from Securing your wallet)
Jump to navigation Jump to search

The location where Bitcoin's data files are stored, including the wallet data file.

Default Location

Windows

Go to Start -> Run (or press WinKey+R) and run this:

explorer %APPDATA%\Bitcoin

Bitcoin's data folder will open. For most users, this is the following locations:

C:\Documents and Settings\YourUserName\Application data\Bitcoin (XP)

C:\Users\YourUserName\Appdata\Roaming\Bitcoin (Vista and 7)

"AppData" and "Application data" are hidden by default.

Linux

By default Bitcoin will put its data here:

~/.bitcoin/

You need to do a "ls -a" to see directories that start with a dot.

If that's not it, you can do a search like this:

find / -name wallet.dat -print 2>/dev/null

Mac

By default Bitcoin will put its data here:

~/Library/Application Support/Bitcoin/

Directory Contents

Subdirectories

  • database

Files

  • .lock
  • blk0001.dat
  • blkindex.dat
  • __db.001
  • __db.002
  • __db.003
  • __db.004
  • __db.005
  • __db.006
  • db.log
  • debug.log
  • wallet.dat

The data, index and log files are used by Oracle Berkeley DB, the embedded key/value data store that Bitcoin uses.

See Also