I know that Bitcoin supports the -datadir
command line option which specifies that the wallet.dat and blockchain should be stored in a custom location rather than %appdata%\roaming\bitcoin
but is there a way to specify a wallet location without also changing the blockchain location? I have a highly secured spot I'd like to stash my wallet.dat in (permanently) but I don't want to stash ~2GB of blockchain data alongside it.
Asked
Active
Viewed 3,791 times
9

Stéphane Gimenez
- 5,134
- 3
- 32
- 38

David Perry
- 14,378
- 5
- 62
- 99
-
Not an exact duplicate, but asking about how to change the default storage location has been posted many, many times. The future canonical question is probably Bitcoin-Qt setup: Change block-chain file location, settings? documentation?. – Peter Mortensen Aug 01 '14 at 12:49
2 Answers
3
A symlink will do it on Linux.
On Windows there's a symbolic link method as well:
A -walletdir= feature has been requested before:

Stephen Gornick
- 27,040
- 12
- 67
- 141
-
+1 That's what I do. But sometimes the symlink gets clobbered (fortunately, just the link, not the wallet): https://github.com/bitcoin/bitcoin/issues/660 – Thilo Apr 20 '12 at 03:22
-
1
0
The next Bitcoin Core release will have -walletdir
, which'll basicly allow you to do it without requiring tricks.
https://github.com/bitcoin/bitcoin/commit/0530ba0eae147563921b162ed05347234d8b53c0

MCCCS
- 10,206
- 5
- 27
- 56