How to backup and restore your Denarius 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:
- In the menu navigate to Settings > Backup Wallet
- Save your wallet to the Documents folder and make sure you give it a unique name such as wallet_backup. Click Save to confirm.
Transferring your backup wallet to your computer
There are a number of ways in which you can connect to your computer from your StakeBox to transfer files, including your backup wallet. You can choose one of the below methods which is more suitable to you. If you do not have remote access to your StakeBox then we highly recommend you read the article "How to remotely access your Denarius StakeBox" first.
Note: It is highly recommended that you also protect your Flash drive by encrypting it with a password in the event that you may lose it.
- Insert your USB flash drive into a spare USB 2.0 socket on your StakeBox. The Flash drive will automatically be detected as a drive and its directory will become available.
- On the Desktop click on the file icon on the top tool bar
- Navigate to where you saved your wallet backup file and right click to copy or go to File > Copy
- Navigate to the USB flash drive in Media > Pi > NAME OF FLASH DRIVE
- In the menu select File > Paste to make a copy of the backup wallet
If you are using VNC viewer there is a built-in File Transfer option where you can ONLY send files from either the server or the client. In this case we will want to send files from the Server since that is where the StakeBox is running.
- Open VNC viewer on your computer and connect to the StakeBox. On the desktop you should see the VNC server icon in the top right tool bar. Click on this icon to open up the VNC server.
- In the VNC server application click on the menu in the top right hand corner to bring a drop box down. You should see the option File Transfer.
- Click on File Transfer and you should see the File Transfer Here you can click on Send Files and select the wallet backup file we created earlier.
If you go back to the VNC viewer on your computer you should see a message stating that a file transfer has successfully been completed.
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.
- On your computer you will need to download an FTP client such as FileZilla from filezilla-project.org
- Launch FileZilla and go to File > Site manager
- Create a New Site and name it StakeBox or whatever you like.
- 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.
- Click connect
- If prompted click ok to trust the host connection
- 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.
- 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 Trezarcoin Wallet in the Documents folder. Simply navigate to Documents and right click to create a new directory.
- 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 lose your wallet or it get corrupted you can restore it with your backup copy, simply by copying and pasting to the same location that the wallet.dat file is. Remember that you will need to rename your backup wallet file to wallet.dat in order for the Trezarcoin application to read your wallet.
You can transfer your backup wallet file using all the of methods above from your computer.
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...
PayPal: Donate with PayPal