Option to move bitcoin storage in Windows #736

issue MaxBareiss opened this issue on January 2, 2012
  1. MaxBareiss commented at 9:50 PM on January 2, 2012: none

    Right now, the %APPDATA\Roaming\Bitcoin folder is about 2GB. I think it would be good if there was a way to configure where Bitcoin's information is stored.

  2. sipa commented at 6:43 PM on January 10, 2012: member

    Doesn't -datadir work?

  3. MaxBareiss commented at 2:25 AM on January 11, 2012: none

    I was thinking a gui option in bitcoin-qt. Does -datadir need to be specified with every run of the program, or does the setting get saved somewhere?

  4. grue0 commented at 8:05 PM on January 15, 2012: none

    @Skinkworks: no, it needs to be specified on every startup. coincidentally, datadir also specifies where bitcoin.conf is, which causes a chicken-and-egg problem about where to save settings.

  5. Diapolo commented at 1:58 PM on June 9, 2012: none

    As Bitcoin-Qt does not save settings from the optionsdialog in the datadir it should be possible to implement this, but priority for this is rather low.

  6. NvrBst commented at 9:45 PM on July 4, 2012: none

    I would also like to +1 this option. Ideally I'd like the datadirectory to be inside the installation directly. Especially when using the 'portable' ".zip" version, it would be nice to have it all localized, aka, not use any external directories. I was thinking by default it should try "%installation_dir%\data" :). Then again I hate the idea of the %appdata% gimic for any app.

    Having it configurable via gui would be a nice compromise though. I also seen another suggestion via "private" and "public" data. It'd be nice to separate this so it's like "wallet.dat + personalized settings/labels" in folder a, and "blockchain stuff" in folder b. It'd be easier for new people to know what needs to be backed up. By default they can be the same directory (as is now).

  7. laanwj commented at 9:11 AM on March 29, 2013: member

    The problem is that, by the time you get the UI, the datadir will already have been created and filled.

    The only way around this would be to have a 'first use' screen in which the datadir can be selected (as, indeed, as @Diapolo says, the Qt settings are not stored in the datadir).

  8. huiju commented at 2:38 AM on August 4, 2013: none

    Since vista we can use symbolic links with the command line (with admin rights) MKLINK /D linkname targetfolder . In that case, it will do something like MKLINK /D %AppData%\Bitcoin Z:\BitcoinData , where Z:\BitcoinData\Bitcoin is the new folder for the data. You need to stop the bitcoin programs and to move the Bitcoin folder in this new emplacement before to perform the command.

  9. laanwj commented at 7:00 AM on November 9, 2013: member

    Setting the data directory after installation has been possible since #2670 was merged

  10. laanwj closed this on Nov 9, 2013

  11. destenson referenced this in commit 6f301d9a63 on Jun 26, 2016
  12. ptschip referenced this in commit ea5bb74269 on Aug 14, 2017
  13. MarcoFalke locked this on Sep 8, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-21 18:16 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me