Zend
wallet.dat, onion_private_key*
Nodetracker
config.json
Check the sha256 hash of the backup file and re-check the hash after transferring to your node. The following command assumes the "backup.<FQDN>.7z" file is located in "/Users/<USER>/"
shasum -a 256 ~/backup.<FQDN>.7z |
The following command assumes the "backup.<FQDN>.7z" file is located in "/Users/<USER>/"
scp ~/backup.<FQDN>.7z <USER>@<FQDN>: |
Check the sha256 hash of the backup file and re-check the hash after transferring to your node. The following command assumes the "backup.<FQDN>.7z" file is located in "/Users/<USER>/"
sha256sum ~/backup.<FQDN>.7z |
Enter the following to SCP the backup file into your home directory
The following command assumes the "backup.<FQDN>.7z" file is located in "/Users/<USER>/"
scp ~/backup.<FQDN>.7z <USER>@<FQDN>: |
Set the $FQDN environment variable - you will need to type this command and change <FQDN> to the Fully-Qualified Domain Name of your node
FQDN=<FQDN> |
Check the sha256 hash of the backup file and and verify it is the same as on your local machine
sha256sum backup.$FQDN.7z |
Stop zend and the tracker if you're using monit and PM2
sudo monit stop zend && pm2 stop 0 |
Stop zend and the tracker if you're using systemd
sudo systemctl stop zend zentracker |
Remove '#' from the line: '#7z x tor.7z -ozen' and '#cp /home/$USER/.temp/zen/onion_private_key /home/$USER/.zen/', if using tor
cat <<EOF > ~/restore.sh #!/bin/bash #Extract Encrypted Archive of Backup Files 7z x ~/backup.$FQDN.7z #Extract zend file(s) 7z x ~/.temp/wallet.7z #7z x ~/.temp/tor.7z #Extract nodetracker config file 7z x ~/.temp/config.7z #Copy needed files mv ~/wallet.dat ~/.zen/ mv ~/config.json ~/nodetracker/config/ #mv ~/onion_private_key ~/.zen/ #Erase Temporary Files rm -rf ~/.temp EOF |
Make the restore script executable
chmod u+x ~/restore.sh |
Install 7zip
sudo apt install p7zip-full -y |
Run the restore script and create and enter password when prompted
~/restore.sh |
Restore tor, if installed by creating the following script and executing it, otherwise, proceed to step 11 or 12
cat <<EOF > ~/tor_script.sh #!/bin/bash sudo sed -i 's/#ControlPort 9051/ControlPort 9051/g' /etc/tor/torrc sudo sed -i 's/#CookieAuthentication 1/CookieAuthentication 1/g' /etc/tor/torrc sudo su -c "echo 'CookieAuthFileGroupReadable 1' >> /etc/tor/torrc" sudo su -c "echo 'LongLivedPorts 9033' >> /etc/tor/torrc" sudo systemctl restart tor.service EOF |
chmod u+x ~/tor_script.sh |
sudo ~/tor_script.sh |
Start zend and the tracker if you're using monit and PM2
sudo monit start zend && pm2 start 0 |
Start zend and the tracker if you're using systemd
sudo systemctl start zend zentracker |