Created
May 26, 2018 18:13
-
-
Save TravisMullen/922b167965796a212524cd6b36d6615b to your computer and use it in GitHub Desktop.
zcoin chainstate and wallet backup
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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