#BitcoinBackup.sh
Inspired by this blog.
Spare some change?
1A71MsTCyDgH1RRaXuneWom98DGQHBskhh
Thanks!
##Simple Bitcoin wallet backup script
This script allows you to simply encrypt (with AES-256) and backup your Bitcoin wallet. It creates a directory for your backups and packs the encrypted wallet.dat with textfile containing md5 sum and in case you forget (maybe while on other computer), command for decryption. In the end, you can setup SCP command (provided) for your server - backup yor wallet remotely, or just send it to your online e-mail account.
##Setup & usage ###Backup & encryption
- Open the script and define your desired backup folder via
$BACKUP_FOLDERvariable and location of yourwallet.dat(using$WALLET_FILE) in your system (depending on your platform). If you want to use remote backup, setup also your username$USER, server$SERVERand remote directory$REMOTE_DIR. - Run the script:
sh BitcoinBackup.sh. Script checks ifbitcoinorbitcoindaren't running. - Enter desired encryption password.
- (optional) In case you set up SCP backup, script will ask you for password.
- Enjoy!
###Decryption
- Get
BitcoinDecrypt.sh. - Run
sh BitcoinDecrypt.sh ~/PATH/TO/FILEwith the file you want to decrypt as argument (needs to be created byBitcoinBackup.sh). - Enter your encryption password. Check the md5 sums for match.
- Enjoy your decrypted wallet in the
wall_datefolder.
IMPORTANT: Make sure you backup your current wallet.dat before you replace it with decrypted one.