Created
June 1, 2017 18:15
-
-
Save einarjh/4ad06b3466771331f4fb12c75a4df6b9 to your computer and use it in GitHub Desktop.
A tiny script to make a backup of your zcash wallet
This file contains 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/bash | |
export LC_ALL=en_US.utf-8 | |
Repo="username@remote:path" # Path to premade remote repo, preferably with encryption | |
Backupdir="/path/to/backup" # Same as exportdir in zcash.conf | |
Date="$(date +%Y-%m-%d)" | |
Options="--compression lz4 --chunker-params 19,23,21,4095" | |
zcash-cli z_exportwallet keysbackup | |
zcash-cli backupwallet walletbackup | |
borg create ${Options} ${Repo}::${Date} ${Backupdir} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment