Skip to content

Instantly share code, notes, and snippets.

@einarjh
Created June 1, 2017 18:15
Show Gist options
  • Save einarjh/4ad06b3466771331f4fb12c75a4df6b9 to your computer and use it in GitHub Desktop.
Save einarjh/4ad06b3466771331f4fb12c75a4df6b9 to your computer and use it in GitHub Desktop.
A tiny script to make a backup of your zcash wallet
#!/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