Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Client: OS-specific data directory location #999

Open
rumkin opened this issue Oct 30, 2020 · 2 comments
Open

Client: OS-specific data directory location #999

rumkin opened this issue Oct 30, 2020 · 2 comments

Comments

@rumkin
Copy link
Contributor

rumkin commented Oct 30, 2020

Description

Default data directory location definition should be OS-specific and follow common practices. Storing blockchain data in home is usual behaviour for most blockchain software. In thee same time applications installed by OS's package manager store its data in one well-known place, for example MySQL on Ubuntu stores its data in /var/lib/mysql. This is prescribed by FHS (Filesystem Hierarchy Standard by Linux Foundation) which prescribes to put globally installed package data to /var/lib/<libname>, (FHS /var/lib). MacOS and Windows has such folders too.

While there is no some common solution where to store data in $HOME, there are some best practices to follow to do it in more convenient way.

Possible Implementation

For local installation: to put data into the next directories:

  • Linux: $HOME/.local/lib/ethereumjs.
  • MacOS $HOME/Library/Application Support/ethereumjs.
  • Windows: C:/Users/<username>/AppData/ethereumjs.

For system package managers installations:

  • Linux: /var/lib/ethereumjs.
  • MacOS: /Library/Application Support/ethereumjs.
  • Windows 10: C:/ProgramData.

Links

@ryanio
Copy link
Contributor

ryanio commented Nov 3, 2020

once this is decided, it would be nice to add the admin_datadir endpoint to our rpc.

@holgerd77 holgerd77 transferred this issue from ethereumjs/ethereumjs-client Dec 4, 2020
@holgerd77 holgerd77 changed the title OS-specific data directory location Client: OS-specific data directory location Dec 4, 2020
@holgerd77
Copy link
Member

This would also still be nice to integrate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants