0

I had the experience of losing a Geth server due to some unknown software issues and whatever I could do for that time was moving keystore files to a new server. But it was a Geth server in fast mode.
After that, I ran a new server in full mode and it tooks much time to be synced completely. I wonder to know how can I backup a Geth server completely and run a new server using the backup file?
I did something in this case but none of them was not successful.

Scenario 1:

  1. Create a new server to restore (Server #2)
  2. Copy all keystore files to new server from server #1
  3. Copy all files in ~/.ethereum/geth/chaindata from server #1 to the same path in server #2
  4. Run the Geth on server #2 using the same command as server #1

Scenario 2:

  1. Create a new server to restore (Server #2)
  2. Run geth export filename on server #1 and move the file to server #2.
  3. Run geth import filename on server #2.
  4. Run the Geth on server #2 using the same command as server #1

Note:
I was expected the export feature will create a full backup of server and after running import command, I would have a complete restored server, but this did not happen!

Regarding to what is mentioned above, my questions are:

  1. What does export & import command do exactly and how can I use them in an appropriate way?
  2. What is the best way of backup a Geth server in full mode with a huge amount of data and restore it completely on a new server?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.