Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: Infinity1 on November 23, 2012, 04:33:34 AM



Title: Changing Data directory location on Bitcoin-qt?
Post by: Infinity1 on November 23, 2012, 04:33:34 AM
I'm currently on a dual-boot setup and have my blockchain and wallet in my Windows XP partition and want to use Bitcoin on my Windows 7 partition.
The problem is that if I try to open Bitcoin on my Windows 7 partition I'm forced to re-download the blockchain and obtain a new wallet.

Is there anyway to change the data directory location so that Bitcoin clients will share the same location? I can't seem to find the option in Bitcoin-qt and hope they implement this in the next version.


Title: Re: Changing Data directory location on Bitcoin-qt?
Post by: niko on November 23, 2012, 05:31:04 AM
Yes, add "-datadir=<dir>" to your target.
If you are moving databases to another directory, you'll want to tick the "detach databases at shutdown" option in bitcoin-qt.