-
Notifications
You must be signed in to change notification settings - Fork 791
Wallet Backups
All accounts you create in your wallet are tied together by a wallet 'seed'. This seed can be used to regenerate your wallet in case of data loss and it also can be used to access and send from any of the accounts so it's important to keep this seed safe.
We recommend backing up the seed by writing it on a piece of paper, perhaps twice, and storing it in a secure fire/water proof location. Never put the seed in to a file unencrypted.
You can copy the seed to your clipboard in the wallet by going to "Advanced" -> "Accounts" -> "Backup/Clipboard wallet seed"
If you need to reload this seed in to your wallet in the future, you can do so through "Advanced" -> "Accounts" -> "Import wallet" and typing the seed in to the "seed" box and pushing "Import seed".
If you run a docker container, you can backup the seed via the command line. First list the wallets attached to this node with the command:
sudo docker run -it -v ~:/root clemahieu/rai_node /rai_node --wallet_list
Then you can list the wallet seed and adhoc private keys with the command:
sudo docker run -it -v ~:/root clemahieu/rai_node /rai_node --wallet_decrypt_unsafe --wallet={wallet} --password={password}
Wallet backups are created in RaiBlocks/backups written on 5 minute intervals.
Backup Location:
Windows: C:\Users<user>\AppData\Local\RaiBlocks\backup
OSX: /Users//Library/RaiBlocks/backup
Linux: ~/RaiBlocks/backup
The default password is empty. At the top of your wallet it will tell you if your wallet has an empty password. It can be changed in Settings -> Change Password. If you change your password the next backup interval will contain the newly encrypted wallet.
The wallet can be restored in the GUI via Advanced -> Accounts -> Import wallet
or on the command line with --wallet_import
From a docker node you can do:
Pick or create a wallet to import the file in to.
sudo docker run -it -v ~:/root clemahieu/rai_node /rai_node --wallet_list
Copy the backup file in to the RaiBlocks directory in your home directory.
sudo docker run -it -v ~:/root clemahieu/rai_node /rai_node --wallet_import --file=/root/RaiBlocks/{backup.json} --wallet={destination wallet} --password={password}
or
sudo docker exec {docker instance id} /rai_node --wallet_list
sudo docker exec {docker instance id} /rai_node --wallet_import --file=/root/RaiBlocks/{backup.json} --wallet={destination wallet} --password={password}