Bitcoin Forum
December 04, 2016, 12:18:06 PM *
News: To be able to use the next phase of the beta forum software, please ensure that your email address is correct/functional.
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: Dealing with multiple wallet.dat files  (Read 1875 times)
mackminer
Sr. Member
****
Offline Offline

Activity: 335



View Profile
December 25, 2011, 04:16:34 PM
 #1

Hi,
My problem is having to copy another dat file into the application folder and swapping back then again.

Is there a better method than this?

Thanks.

1tpXGRKnzaM42B1A1NZhmsX3tngwkqVEf
1480853886
Hero Member
*
Offline Offline

Posts: 1480853886

View Profile Personal Message (Offline)

Ignore
1480853886
Reply with quote  #2

1480853886
Report to moderator
1480853886
Hero Member
*
Offline Offline

Posts: 1480853886

View Profile Personal Message (Offline)

Ignore
1480853886
Reply with quote  #2

1480853886
Report to moderator
1480853886
Hero Member
*
Offline Offline

Posts: 1480853886

View Profile Personal Message (Offline)

Ignore
1480853886
Reply with quote  #2

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

Posts: 1480853886

View Profile Personal Message (Offline)

Ignore
1480853886
Reply with quote  #2

1480853886
Report to moderator
Drifter
Sr. Member
****
Offline Offline

Activity: 367


View Profile
December 25, 2011, 04:40:28 PM
 #2

You could always rename the wallet.dat file something else and keep it in the app folder. Then you just need to rename it back to wallet.dat when you want to use it and restart bitcoin.
Still a bit of useless work, but I believe future clients are working on wallet swaps.

dancupid
Hero Member
*****
Online Online

Activity: 954



View Profile
December 25, 2011, 04:42:27 PM
 #3

Hi,
My problem is having to copy another dat file into the application folder and swapping back then again.

Is there a better method than this?

Thanks.

There doesn't appear to be.
file->open wallet and file->save wallet would be nice at the very least (with some sort of sensible naming protocol). 'Add wallet to current wallet' would be useful too.
Raoul Duke
aka psy
Legendary
*
Offline Offline

Activity: 1442



View Profile
December 25, 2011, 04:44:24 PM
 #4

Why don't you just create another application data dir and start the client with the -datadir=<wallet2dir> param when you wish to use that other wallet.dat? You can even create shortcuts for your 2 wallets.
Maybe you could symlink the blockchain(and all files that don't change) to the main data dir.
It will take some minutes to setup, but you'll only do it once Wink

Gabi
Legendary
*
Offline Offline

Activity: 1050


View Profile
December 25, 2011, 04:45:54 PM
 #5

There isn't, at least, so far

A "open wallet" button would be helpful but so far...nothing
mackminer
Sr. Member
****
Offline Offline

Activity: 335



View Profile
December 25, 2011, 05:37:58 PM
 #6

Thanks for the replies. I'll create the client that's directed to another .dat file then.

1tpXGRKnzaM42B1A1NZhmsX3tngwkqVEf
ovidiusoft
Sr. Member
****
Offline Offline

Activity: 252


View Profile
December 26, 2011, 11:04:51 AM
 #7

Maybe you could symlink the blockchain(and all files that don't change) to the main data dir.

OP didn't specify if he's using a symlink-capable OS. Even if he is, I'm pretty sure the client won't like the blockchain being updated from another process. Having multiple datadirs seems the best solution, but it will use a lot more disk space.
Raoul Duke
aka psy
Legendary
*
Offline Offline

Activity: 1442



View Profile
December 26, 2011, 02:33:08 PM
 #8

Maybe you could symlink the blockchain(and all files that don't change) to the main data dir.

OP didn't specify if he's using a symlink-capable OS. Even if he is, I'm pretty sure the client won't like the blockchain being updated from another process. Having multiple datadirs seems the best solution, but it will use a lot more disk space.

That's why I said "Maybe". But almost(?) all Linux flavors support them, MacOS also, hell, even Windows Vista and 7 support symlinks. There is a good chance that the OP is using a symlink capable OS
About the blockchain being updated from another process, it won't be. He shuts down wallet1 bitcoin client and starts the same bitcoin client pointing to the data dir that contains wallet2. No need to run 2 clients at the same time. 1 binary - 2 data dirs.
Hope I made myself clear now.

kjj
Legendary
*
Offline Offline

Activity: 1302



View Profile
December 26, 2011, 02:52:57 PM
 #9

Can I ask what you hope to gain by having multiple wallets?  Whatever it is, multiple wallets is almost certainly the wrong answer.

p2pcoin: a USB/CD/PXE p2pool miner - 1N8ZXx2cuMzqBYSK72X4DAy1UdDbZQNPLf - todo
I routinely ignore posters with paid advertising in their sigs.  You should too.
Raoul Duke
aka psy
Legendary
*
Offline Offline

Activity: 1442



View Profile
December 26, 2011, 03:07:36 PM
 #10

Can I ask what you hope to gain by having multiple wallets?  Whatever it is, multiple wallets is almost certainly the wrong answer.

2 business/uses that the OP want in no way to get linked to eachother without having to worry much Wink

notme
Legendary
*
Offline Offline

Activity: 1526


View Profile
December 26, 2011, 03:28:26 PM
 #11

Right, I wouldn't run two daemons with symlinked blockchains at the same time, but it should be fine if you only run one.  Personally, I use separate datadirs on BTRFS.  Occasionally, I shut down everything and do a 'cp --reflink=always' of the blockchain to use Copy-On-Write.  This shares the common data between the two sets of files.  I've got way too much disk space though, so I don't have to do this very often.

https://www.bitcoin.org/bitcoin.pdf
While no idea is perfect, some ideas are useful.
12jh3odyAAaR2XedPKZNCR4X4sebuotQzN
dancupid
Hero Member
*****
Online Online

Activity: 954



View Profile
December 26, 2011, 03:47:37 PM
 #12

Can I ask what you hope to gain by having multiple wallets?  Whatever it is, multiple wallets is almost certainly the wrong answer.

I have about 10 wallets - I had no intention to create 10 wallets but I have 10 wallets.
I back up one, then there is a new client so a create another, then I create an encrypted wallet then I hear that the encryption didn't work properly so I create another with the next version then I back that up, then I lose track of which wallet is the correct wallet, and worry that I created it in Windows rather than my virtualized Ubuntu so I create another (my final one) and then ....
Gabi
Legendary
*
Offline Offline

Activity: 1050


View Profile
December 26, 2011, 07:20:10 PM
 #13

Can I ask what you hope to gain by having multiple wallets?  Whatever it is, multiple wallets is almost certainly the wrong answer.
You keep most of your btc on the safer wallet and less on the wallet you use daily...
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!