This page will be updated with the most commonly used scripts to help simplify node maintenance
- Upgrade Script
- Tor Script
- Backup Script
- Restore Script
Description | Command | |||
---|---|---|---|---|
Upgrade Script | ||||
1 | Download and install latest system and security updates Update the packages Remove old files | The following block of text is meant to be copied and pasted in its entirety
|
|
|
|
| ||||
Tor Script - ONLY USE IF USING TOR | ||||
---|---|---|---|---|
2 | Update the torrc file to make tor work with the zend daemon
| The following block of text is meant to be copied and pasted in its entirety
|
|
|
Replace <FQDN> with your fully-qualified domain name, remove '#' from '#7z a tor.7z ~/.zen/onion_private_key' if using tor
More detail can be found here: Node Wallet Backup
Code Block |
---|
FQDN=<FQDN> |
The following block of text is meant to be copied and pasted in its entirety
Code Block |
---|
cat <<EOF > ~/backup_script.sh
#!/bin/bash
#Create a temp Directory
mkdir ~/.temp
cd ~/.temp
#Archive Zend Files
7z a zen.conf.7z ~/.zen/zen.conf
7z a wallet.7z ~/.zen/wallet.dat
#7z a tor.7z ~/.zen/onion_private_key
#Archive Secure Node Tracker Config Files
7z a secnodetracker.7z ~/zencash/secnodetracker/config
#Archive Script Files
7z a scripts.7z ~/*.sh -xr!acme.sh
#Create Encrypted Archive of Backup Files
cd
7z a -p backup.$FQDN.7z ~/.temp
#Erase Temporary Files
rm -rf ~/.temp
cd
EOF |
Code Block |
---|
chmod u+x ~/backup_script.sh |
Code Block |
---|
~/backup_script.sh |
Replace <FQDN> with your fully qualified domain name, remove '#' from '#7z x tor.7z -ozen' and '#cp /home/$USER/.temp/zen/onion_private_key /home/$USER/.zen/' if using tor
More detail can be found here: Node Wallet Restore
UPDATE CODE BLOCK TO NODE, RATHER THAN SECNODE >>>
Code Block |
---|
FQDN=<FQDN> |
The following block of text is meant to be copied and pasted in its entirety
|
|
|
|
Code Block |
---|
chmod u+x ~/restore_script.sh |
|
Insert excerpt | ||||||
---|---|---|---|---|---|---|
|