Bitcoin Forum
May 12, 2024, 06:04:25 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: [Bitcoin Core] Where is -datadir -- how to use blocks in alternative directory?  (Read 1225 times)
C. Bergmann (OP)
Hero Member
*****
Offline Offline

Activity: 803
Merit: 500



View Profile
March 20, 2014, 06:36:43 PM
 #1

Hi,

with bitcoin-qt I used
-datadir=<directory> to redirect qt on another directory to save the blocks (had them on another hd).
My c:\ is pretty full, the complete blockchain would be too much, so it is important for me to redirect the client to use the btc.

Now I updated the client, and it has to reconstruct alle those blocks. I think it won't fit in my hd.

I tried to use -datadir in the console, but it didn't work. My .conf still has the line datadir=<d:\...>, but it seems not to work.

Anyone knows more?

<b>edit</b>: solved. I should have known the difference between console and command line


▄▄████▄▄
▄████████████▄
▄▄█████▀▀    ▀▀█████▄▄
▄█████▀▀            ▀▀█████▄
▄███▀       ▄████▄       ▀███▄
███      ▄██████████▄      ███
███    ▄██████████████▄    ███
███    ████████████████    ███
███    ████████████████    ███
███    ████████████████    ███
███    ▀██████████████▀    ███
███      ▀██████████▀      ███
▀███▄       ▀████▀       ▄███▀
▀█████▄▄            ▄▄█████▀
▀▀█████▄▄    ▄▄█████▀▀
▀████████████▀
▀▀████▀▀
Gabro███
███
███
███
███
███
███
███
███
███
███
███
███
███
███
███
███
███
███
███
███
███
███
███
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
WHITEPAPER
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
TOKEN SALES
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
1715537065
Hero Member
*
Offline Offline

Posts: 1715537065

View Profile Personal Message (Offline)

Ignore
1715537065
Reply with quote  #2

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

Posts: 1715537065

View Profile Personal Message (Offline)

Ignore
1715537065
Reply with quote  #2

1715537065
Report to moderator
1715537065
Hero Member
*
Offline Offline

Posts: 1715537065

View Profile Personal Message (Offline)

Ignore
1715537065
Reply with quote  #2

1715537065
Report to moderator
1715537065
Hero Member
*
Offline Offline

Posts: 1715537065

View Profile Personal Message (Offline)

Ignore
1715537065
Reply with quote  #2

1715537065
Report to moderator
yabtcl
Full Member
***
Offline Offline

Activity: 189
Merit: 103



View Profile
March 20, 2014, 08:35:57 PM
 #2

you can't use -datadir on the configuration file:


From https://en.bitcoin.it/wiki/Running_Bitcoin#Bitcoin.conf_Configuration_File
Quote
Bitcoin.conf Configuration File

All command-line options (except for -datadir and -conf) may be specified in a configuration file, and all configuration file options may also be specified on the command line. Command-line options override values set in the configuration file.

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!