Author

Topic: How to change ONLY wallet location Bitcoin Core? (Read 1663 times)

legendary
Activity: 3290
Merit: 16489
Thick-Skinned Gang Leader and Golden Feather 2021
November 15, 2017, 12:26:16 PM
#10
This thread is relevant again: after upgrading, Bitcoin Core no longer allows me to symlink the wallet.dat file. I have never before encountered any application that threats a symlink different than a real file, this is supposed to be handled on the file system level.

Having my wallet on a different location worked fine for as long as I've been using Bitcoin Core, and that way it's easier to include it in my backups.
My obvious question: is there any method to still have a wallet outside the data directory? I can't make a hard link, as it's a different physical disk.

Edit: I found a solution, see here.
newbie
Activity: 25
Merit: 0
Yes. Symlink is working.
copper member
Activity: 1498
Merit: 1528
No I dont escrow anymore.
Thanks for all.

Not sure what you are trying to accomplish, but maybe a symlink can help?
newbie
Activity: 25
Merit: 0
Thanks for all.
copper member
Activity: 1498
Merit: 1528
No I dont escrow anymore.
So it impossible start bitcoin with the different directories, C/: for the data; and D/: for the wallet.

Yes.
newbie
Activity: 25
Merit: 0
So it impossible start bitcoin with the different directories, C/: for the data; and D/: for the wallet.
legendary
Activity: 4256
Merit: 1313
Ok my link is C:\bin\bitcoin-qt.exe -datadir=C:\data -wallet=D:\bit\wallet.dat

But it returns error "Wallet resides outside data directory C:\data"

That is because the -wallet argument only lets you change the name.  The information you were given above was not correct:
"Specify wallet file (within data directory) (default: wallet.dat)"

https://en.bitcoin.it/wiki/Running_Bitcoin

You could just make a symlink to the file after moving it. See e.g. https://en.m.wikipedia.org/wiki/Symbolic_link#Windows_7_.26_Vista_symbolic_link

However, I'd be careful. And keep several backups.
newbie
Activity: 25
Merit: 0
Ok my link is C:\bin\bitcoin-qt.exe -datadir=C:\data -wallet=D:\bit\wallet.dat

But it returns error "Wallet resides outside data directory C:\data"
sr. member
Activity: 462
Merit: 250
Code:
-wallet= Specify wallet file (within data directory) (default: wallet.dat)
If you run bitcoind with the --wallet argument you can specify the directory in which the wallet.dat file is saved.
newbie
Activity: 25
Merit: 0
I know about -datadir, but it writes all big data and wallet in one dir. I need to save wallet.dat to another location, so Bitcoin Core will read wallet.dat from another location. For example maybe bitcoin --key-path
Thank you.
Jump to: