Bitcoin Tutorials - Herong's Tutorial Examples - v1.04, by Dr. Herong Yang
"bitcoin-cli backupwallet" - Backup Wallet
This section describes how to backup wallet as a file with 'bitcoin-cli backupwallet' command.
Once a while, you should backup your wallet to memory stick, just in case your computer crashes.
1. You can backup your wallet using the "bitcoin-cli backupwallet" command:
C:\>\local\bitcoin-0.15.1\bin\bitcoin-cli -testnet backupwallet E:\testnet_wallet.dat
2. Or you can just copy the wallet file from C: to E:
C:\>copy C:\Users\herong\AppData\Roaming\Bitcoin\testnet3\wallet.dat E:\testnet_wallet_2.dat C:\>E: E:\>comp testnet_wallet.dat testnet_wallet_2.dat Comparing testnet_wallet.dat and testnet_wallet_2.dat... Files compare OK
3. Take out the memory stick and place it in a safe place. Write down the password of the wallet in a safe place too.
Table of Contents