Bitcoin Forum
November 11, 2024, 02:58:21 AM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: How to change ONLY wallet location Bitcoin Core?  (Read 1660 times)
Solaso (OP)
Newbie
*
Offline Offline

Activity: 25
Merit: 0


View Profile
January 06, 2017, 10:49:28 AM
 #1

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.
BigBoom3599
Sr. Member
****
Offline Offline

Activity: 462
Merit: 250


View Profile
January 06, 2017, 10:57:36 AM
 #2

Code:
-wallet=<file>	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.
Solaso (OP)
Newbie
*
Offline Offline

Activity: 25
Merit: 0


View Profile
January 06, 2017, 11:12:55 AM
 #3

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"
cr1776
Legendary
*
Offline Offline

Activity: 4214
Merit: 1313


View Profile
January 06, 2017, 11:19:23 AM
 #4

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.
Solaso (OP)
Newbie
*
Offline Offline

Activity: 25
Merit: 0


View Profile
January 06, 2017, 11:24:27 AM
 #5

So it impossible start bitcoin with the different directories, C/: for the data; and D/: for the wallet.
shorena
Copper Member
Legendary
*
Offline Offline

Activity: 1498
Merit: 1540


No I dont escrow anymore.


View Profile
January 06, 2017, 11:27:03 AM
 #6

So it impossible start bitcoin with the different directories, C/: for the data; and D/: for the wallet.

Yes.

Im not really here, its just your imagination.
Solaso (OP)
Newbie
*
Offline Offline

Activity: 25
Merit: 0


View Profile
January 06, 2017, 11:59:50 AM
 #7

Thanks for all.
shorena
Copper Member
Legendary
*
Offline Offline

Activity: 1498
Merit: 1540


No I dont escrow anymore.


View Profile
January 06, 2017, 12:13:17 PM
 #8

Thanks for all.

Not sure what you are trying to accomplish, but maybe a symlink can help?

Im not really here, its just your imagination.
Solaso (OP)
Newbie
*
Offline Offline

Activity: 25
Merit: 0


View Profile
January 06, 2017, 12:31:08 PM
 #9

Yes. Symlink is working.
LoyceV
Legendary
*
Offline Offline

Activity: 3486
Merit: 17656


Thick-Skinned Gang Leader and Golden Feather 2021


View Profile WWW
November 15, 2017, 05:26:16 PM
Last edit: November 18, 2017, 11:01:51 AM by LoyceV
 #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.

▄▄███████████████████▄▄
▄█████████▀█████████████▄
███████████▄▐▀▄██████████
███████▀▀███████▀▀███████
██████▀███▄▄████████████
█████████▐█████████▐█████
█████████▐█████████▐█████
██████████▀███▀███▄██████
████████████████▄▄███████
███████████▄▄▄███████████
█████████████████████████
▀█████▄▄████████████████▀
▀▀███████████████████▀▀
Peach
BTC bitcoin
Buy and Sell
Bitcoin P2P
.
.
▄▄███████▄▄
▄████████
██████▄
▄██
█████████████████▄
▄███████
██████████████▄
███████████████████████
█████████████████████████
████████████████████████
█████████████████████████
▀███████████████████████▀
▀█████████████████████▀
▀██████████████████▀
▀███████████████▀
▀▀███████▀▀

▀▀▀▀███▀▀▀▀
EUROPE | AFRICA
LATIN AMERICA
▄▀▀▀











▀▄▄▄


███████▄█
███████▀
██▄▄▄▄▄░▄▄▄▄▄
████████████▀
▐███████████▌
▐███████████▌
████████████▄
██████████████
███▀███▀▀███▀
.
Download on the
App Store
▀▀▀▄











▄▄▄▀
▄▀▀▀











▀▄▄▄


▄██▄
██████▄
█████████▄
████████████▄
███████████████
████████████▀
█████████▀
██████▀
▀██▀
.
GET IT ON
Google Play
▀▀▀▄











▄▄▄▀
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!