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.


2 Answers 2


A symlink will do it on Linux.

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

A -walletdir= feature has been requested before:

  • +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
    Commented Apr 20, 2012 at 3:22
  • 1
    That's fantastic, how did I not know Win7 had symlinks?! Commented Apr 20, 2012 at 16:31

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



Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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