Title: How to change ONLY wallet location Bitcoin Core? Post by: Solaso on January 06, 2017, 10:49:28 AM 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. Title: Re: How to change ONLY wallet location Bitcoin Core? Post by: BigBoom3599 on January 06, 2017, 10:57:36 AM Code: -wallet=<file> Specify wallet file (within data directory) (default: wallet.dat) Title: Re: How to change ONLY wallet location Bitcoin Core? Post by: Solaso on January 06, 2017, 11:12:55 AM 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" Title: Re: How to change ONLY wallet location Bitcoin Core? Post by: cr1776 on January 06, 2017, 11:19:23 AM 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. Title: Re: How to change ONLY wallet location Bitcoin Core? Post by: Solaso on January 06, 2017, 11:24:27 AM So it impossible start bitcoin with the different directories, C/: for the data; and D/: for the wallet.
Title: Re: How to change ONLY wallet location Bitcoin Core? Post by: shorena on January 06, 2017, 11:27:03 AM So it impossible start bitcoin with the different directories, C/: for the data; and D/: for the wallet. Yes. Title: Re: How to change ONLY wallet location Bitcoin Core? Post by: Solaso on January 06, 2017, 11:59:50 AM Thanks for all.
Title: Re: How to change ONLY wallet location Bitcoin Core? Post by: shorena on January 06, 2017, 12:13:17 PM Thanks for all. Not sure what you are trying to accomplish, but maybe a symlink can help? Title: Re: How to change ONLY wallet location Bitcoin Core? Post by: Solaso on January 06, 2017, 12:31:08 PM Yes. Symlink is working.
Title: Re: How to change ONLY wallet location Bitcoin Core? Post by: LoyceV on November 15, 2017, 05:26:16 PM 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 (https://bitcointalk.org/index.php?topic=2414328.msg24782351#msg24782351). |