2

I have started geth (fresh install) using this command:

geth --datadir "my/path"

I'm halfway done with sync and would like to restart my PC.

Will I loose all the data accumulated so far or not?

And when I restart the PC, do I have to pass in the --datadir argument again?

1 Answer 1

2

No, you will not lose any data if you restart your computer. The data will live in my/path. If you run the same command (with the same --datadir path), then the node will continue syncing from where it left off.

With that said, there is a chance that some of the data gets corrupted if you restart your computer without gracefully exiting the sync.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.