Skip to content

Instantly share code, notes, and snippets.

@TravisMullen
Created May 26, 2018 18:13
Show Gist options
  • Save TravisMullen/922b167965796a212524cd6b36d6615b to your computer and use it in GitHub Desktop.
Save TravisMullen/922b167965796a212524cd6b36d6615b to your computer and use it in GitHub Desktop.
zcoin chainstate and wallet backup
#!/bin/sh -e
sudo apt-get install zip unzip
# zcoin-cli stop
sudo systemctl disable zcoind
sudo systemctl stop zcoind
rm -f $HOME/chainstate.backup.zip
cp $HOME/.zcoin/wallet.dat $HOME/wallet.backup.dat
cp $HOME/.zcoin/zcoin.conf $HOME/zcoin.backup.conf
cp $HOME/.zcoin/znode.conf $HOME/znode.backup.conf
zip -r $HOME/chainstate.backup.zip $HOME/.zcoin/blocks $HOME/.zcoin/chainstate $HOME/.zcoin/peers.dat $HOME/.zcoin/banlist.dat
# zcoind -daemon
sudo systemctl start zcoind
sudo systemctl enable zcoind
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment