Difference between revisions of "Data directory"
(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) |
(→Directory Contents: Info about files) |
||
Line 37: | Line 37: | ||
===Subdirectories=== | ===Subdirectories=== | ||
− | * database | + | * database |
+ | **Contains journaling files for the block database | ||
+ | * testnet | ||
+ | **Contains testnet versions of these files (if running with -testnet) | ||
===Files=== | ===Files=== | ||
* .lock | * .lock | ||
− | * | + | **BDB lock file |
+ | * blk''xxxx''.dat | ||
+ | **Contains concatenated raw blocks | ||
* blkindex.dat | * blkindex.dat | ||
− | * | + | **Indexing information used with blk''xxxx''.dat |
− | * | + | * __db.''xxx'' |
− | * __db. | + | **Used by BDB |
− | * | ||
− | * | ||
− | |||
* db.log | * db.log | ||
* debug.log | * debug.log | ||
+ | **Bitcoin's verbose log file. Automatically trimmed from time to time. | ||
* wallet.dat | * wallet.dat | ||
+ | **Storage for keys, transactions, metadata, and options. Does not use BDB (?). | ||
The data, index and log files are used by Oracle [http://en.wikipedia.org/wiki/Berkeley_DB Berkeley DB], the embedded key/value data store that Bitcoin uses. | The data, index and log files are used by Oracle [http://en.wikipedia.org/wiki/Berkeley_DB Berkeley DB], the embedded key/value data store that Bitcoin uses. |
Revision as of 05:15, 30 January 2011
The location where Bitcoin's data files are stored, including the wallet data file.
Contents
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
- Contains journaling files for the block database
- testnet
- Contains testnet versions of these files (if running with -testnet)
Files
- .lock
- BDB lock file
- blkxxxx.dat
- Contains concatenated raw blocks
- blkindex.dat
- Indexing information used with blkxxxx.dat
- __db.xxx
- Used by BDB
- db.log
- debug.log
- Bitcoin's verbose log file. Automatically trimmed from time to time.
- wallet.dat
- Storage for keys, transactions, metadata, and options. Does not use BDB (?).
The data, index and log files are used by Oracle Berkeley DB, the embedded key/value data store that Bitcoin uses.