How to backup & restore your EGC wallet

How to backup & restore your EGC wallet

Backing up your wallet is an important step to securing your coins in the event of losing your current staking wallet. Having a backup will enable you to restore your wallet for staking. First let’s take a copy of the wallet.dat file just in case the file gets corrupted when we copy it over. To make a copy type in the following command:

scp pi@raspberrypi.local:~/.evergreencoin/wallet.dat ./rpi_wallet-backup.dat

You should now see a backup copy of your wallet stored in your current directory location. You can check by typing in the following command:

ls 

Before we transfer the backup wallet we need to give the following permissions to the file: 

sudo chmod 755 rpi_wallet-backup.dat 

Now we are going to transfer the backup wallet to your computer and there are a few ways in which you can do this.

SFTP File Transfer

The SSH File transfer protocol is the easiest method to transfer files between two devices on your StakeBox since we already have SSH enabled.

  1. On your computer you will need to download an FTP client such as FileZilla from filezilla-project.org

  1. Launch FileZilla and go to File > Site manager

  1. Create a New Site and name it StakeBox or whatever you like.
  2. Under General tab fill in the IP address of your StakeBox and in the Protocol box select SFTP. Under Logon Type select normal and then fill in your user name and password for the StakeBox in the below fields.

  1. Click connect
  2. If prompted click ok to trust the host connection

 

  1. You are now connected to the StakeBox using SFTP 

Here we can see our folder on the right hand side where we saved our wallet backup file earlier.

  1. On the left hand side navigate to a folder where you would like to save your backup wallet to. For example, you might want to save it to a new folder named EGC Wallet in the Documents folder. Simply navigate to Documents and right click to create a new directory.
  2. Now locate your wallet backup file on the right hand side and right click the file and select Download

You should now see the back-up wallet has now transferred to your computer. Make sure that you save this wallet in a secure location to prevent any unauthorized access. 

Restoring Your Wallet

In the event that you have completely lost your running wallet, you can easily restore your wallet by copying your previously backed-up wallet file into the specific data directory before restarting the qtum core program.

If the data directory is complete missing i.e. you have re-installed a failed OS or on a new StakeBox, the easiest way to restore your wallet is to perform the following steps:

  1. Start the evergreencoin core service, this will create the data directory:
evergreencoind -daemon
  1. Once the evergreencoin core service has started running for a about 30 seconds or so shut it down by typing in the following:
ps -A | grep evergreencoind

You should see a process number, then:

kill <id>

Where id is the process number.

  1. Replace the wallet.dat file that was just created in the data directory with your latest back-up wallet. Make sure the back-up wallet is the named wallet.dat.
  2. Restart the EGC daemon:
evergreencoind -daemon

Give us a tip!

Our learning and blog content is shared and released for free with no adverts ever, guaranteed! If this content helped your project or you just like the work we do and would like to help us grow the content and products we have available, please consider giving us a tip...

BTC: 12ThHKExWZYzLJ7gWSug7CwN5juLEFnpQx

ETH: 0x7323173a7b70e391b82c811af7ebc9ef0d777643

CoinPayments:

PayPal: Donate with PayPal

Previous article Getting Started with Evergreen Coin StakeBox
Next article How to remotely access your EGC StakeBox

Leave a comment

Comments must be approved before appearing

* Required fields