System Backup (DRAFT)

This guide walks you through the process of backing up and restoring the Cold Wallet database using the Cold Wallet CLI.

Prerequisites

Before you begin, ensure you have installed and can run the Cold Wallet CLI Deployment.

Backup & Restore

  1. Run the Cold Wallet CLI installer with the command for your OS.
  • Linux
./coldwallet-cli-linux
  • macOS
./coldwallet-cli-darwin
  1. Once launched, the CLI will display a list of commands for managing databases, keys, and presignatures:
This CLI is used to manage the Blockdaemon cold wallet. It can generate
        configuration, run the cold wallet, and manage the cold wallet.

Usage:
  walletcli [command]

Available Commands:
  completion   Generate the autocompletion script for the specified shell
  config       Manage wallets' configurations.
  database     Manage MPC nodes' databases.
  help         Help about any command
  key          Manage MPC nodes' keys.
  presignature Presignatures are essential in MPC protocol. Each node must get hold of sufficient presignatures for the wallet to work.

Flags:
  -h, --help   help for walletcli

Use "walletcli [command] --help" for more information about a command.

How to Backup

  1. To back up the Cold Wallet database, run the following command.
./coldwallet-cli-darwin database
  1. This command will display database management options, such as backup or restore a database.
/Manage MPC nodes' databases.

Usage:
  walletcli database [command]

Available Commands:
  backup      Backup the database of the node
  restore     Restore the database of the node

Flags:
  -h, --help   help for database

Use "walletcli database [command] --help" for more information about a command.
  1. Select the node you want to back up. For example, to back up node0, run:
./coldwallet-cli-darwin database backup --node-index 0
  1. The backup file for node0 will be saved in the backup/backup folder.

How to Restore

❗️

Note

Ensure that the container running the MPC node is stopped before restoring.

  1. Run the restore command with the backup file name:
./coldwallet-cli-darwin database restore --node-index 0 --backup-file <the backup file name>
  1. Confirm the node is stopped by typing YES.
  2. Once the restoration process is complete, the backup file will be removed.

🗣️We Are Here to Help!

Please contact us via email or support chat if you encounter an issue, bug, or need assistance. Don't forget to include any relevant details about the problem. To request a wallet form and Institutional Vault Approver form, please click here or contact our sales team.