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.


A symlink will do it on Linux.

On Windows there's a symbolic link method as well:

A -walletdir= feature has been requested before:

| improve this answer | |
  • +1 That's what I do. But sometimes the symlink gets clobbered (fortunately, just the link, not the wallet): github.com/bitcoin/bitcoin/issues/660 – Thilo Apr 20 '12 at 3:22
  • 1
    That's fantastic, how did I not know Win7 had symlinks?! – David Perry Apr 20 '12 at 16:31

The next Bitcoin Core release will have -walletdir, which'll basicly allow you to do it without requiring tricks.



| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.