Skip to content

How to backup my wallet and its data

BytzCK edited this page Nov 23, 2021 · 1 revision

Backup private keys

To backup your private keys, start your wallet (bytzd/bytz-qt).

Backup WIF

WIF - Wallet import format

Note: Please do not use this private key in your wallet. This is a dummy key and everybody can import it to check.

    • If your wallet is locked, please unlock your wallet:

    Syntax: walletpassphrase YOURPASSWORD SECONDSTOSTAYUNLOCKED FORSTAKINGONLY

    EXAMPLE: Unlock your wallet for 60 seconds:

    walletpassphrase somepassword 60 false

    • Backup your WIF (Wallet import format key, this is a key which you use when using importprivkey)

    Syntax: dumpprivkey YOURPUBLICWALLETADDRESS

    Example: dumpprivkey sYgsEFPcUwn14uCA3wHHXXj7ooJd4Cset1

    Output (WIF): Mof1gNVnfaMVLFXZd6jaQB75ujjBsGrrCsEBPgaPLhz9uyU6frRG

    Test key by importing into another wallet (or own):

    Syntax: importprivkey WALLETIMPORTFORMATPRIVATEKEY "LABEL" RESCAN(true/false)

    EXAMPLE: importprivkey Mof1gNVnfaMVLFXZd6jaQB75ujjBsGrrCsEBPgaPLhz9uyU6frRG false

    Check if key is valid after import: getaddressinfo sYgsEFPcUwn14uCA3wHHXXj7ooJd4Cset1

{
  "address": "sYgsEFPcUwn14uCA3wHHXXj7ooJd4Cset1",
  "scriptPubKey": "76a9149e62d2c5ded2f941b54ffe7c4cf56af9908d3a4a88ac",
  "ismine": true,
  "iswatchonly": false,
  "isscript": false,
  "pubkey": "023fc72611ccd9e64193c8d9cd2a3ca778aead15f9d5716b0c9b168f4f545bafe3",
  "iscompressed": true,
  "label": "TestAddressPUBLIC!!!!",
  "timestamp": 1635772045,
  "labels": [
    {
      "name": "TestAddressPUBLIC!!!!",
      "purpose": "receive"
    }
  ]
}

Backup datadir/wallet.dat

It is never bad idea to backup full folder. Wallet.dat should be backed up, even if you backup private keys. Please do both, backup always your private keys before starting using a wallet, then

    • Shutdown your wallet
    • Make sure it does not run
    • Backup/Copy your full data dir or parts of it
Clone this wiki locally