Bitcoin Forum
September 24, 2018, 10:48:52 PM *
News: ♦♦ New info! Bitcoin Core users absolutely must upgrade to previously-announced 0.16.3 [Torrent]. All Bitcoin users should temporarily trust confirmations slightly less. More info.
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: How to change ONLY wallet location Bitcoin Core?  (Read 1527 times)
Solaso
Newbie
*
Offline Offline

Activity: 23
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.
1537829332
Hero Member
*
Offline Offline

Posts: 1537829332

View Profile Personal Message (Offline)

Ignore
1537829332
Reply with quote  #2

1537829332
Report to moderator
1537829332
Hero Member
*
Offline Offline

Posts: 1537829332

View Profile Personal Message (Offline)

Ignore
1537829332
Reply with quote  #2

1537829332
Report to moderator
1537829332
Hero Member
*
Offline Offline

Posts: 1537829332

View Profile Personal Message (Offline)

Ignore
1537829332
Reply with quote  #2

1537829332
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1537829332
Hero Member
*
Offline Offline

Posts: 1537829332

View Profile Personal Message (Offline)

Ignore
1537829332
Reply with quote  #2

1537829332
Report to moderator
BigBoom3599
Sr. Member
****
Offline Offline

Activity: 406
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
Newbie
*
Offline Offline

Activity: 23
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: 2002
Merit: 1007


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
Newbie
*
Offline Offline

Activity: 23
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: 1470
Merit: 1271


No I dont escrow anymore.


View Profile WWW
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.
Solaso
Newbie
*
Offline Offline

Activity: 23
Merit: 0


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

Thanks for all.
shorena
Copper Member
Legendary
*
Offline Offline

Activity: 1470
Merit: 1271


No I dont escrow anymore.


View Profile WWW
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?
Solaso
Newbie
*
Offline Offline

Activity: 23
Merit: 0


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

Yes. Symlink is working.
LoyceV
Legendary
*
Offline Offline

Activity: 1246
Merit: 1993


Let's make Bitcointalk great again!


View Profile WWW
November 15, 2017, 05: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.

Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!