∟"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

 About This Book

 Introduction of Bitcoin

 Bitcoin Blockchain

 Bitcoin Wallet

►Bitcoin Core

 Bitcoin Core Programs

 Bitcoin Core Daemon

 Bitcoin Core CLI

 Bitcoin Core CLI Commands

 Access Bitcoin Test Network "-testnet"

 bitcoin-cli Network Commands

 "bitcoin-cli getblock" Command

 bitcoin-cli Transaction Commands

 bitcoin-cli Wallet Commands

 "bitcoin-cli encryptwallet" - Set Wallet Password

 "bitcoin-cli walletpassphrase" - Unlock Wallet

►"bitcoin-cli backupwallet" - Backup Wallet

 Bitcoin Transaction

 Bitcoin-Qt - Bitcoin Core GUI

 Bitcoin Mining

 Bitcoin Consensus Rules

 Bitcoin Block Data Structure

 Bitcoin Transaction Data Structure

 Bitcoin Blockchain APIs

 Copay - Bitcoin Wallet

 Archived Tutorials

 References

 Full Version in PDF/EPUB