MarketDeck docs

backup

Export and restore non-secret MarketDeck state.

marketdeck backup exports portable MarketDeck configuration: wallet records, agent records, and metadata about the SQLite data file. Secrets are intentionally excluded.

Usage#

marketdeck backup <create|restore|inspect|verify|export|import> [args]
SubcommandWhat it does
create [--out PATH] [--include-db] [--include-cache]Write a non-secret JSON backup. --include-db embeds the SQLite file as base64 with a checksum; --include-cache records cache metadata.
export [--out PATH]Alias for create.
`restore <path> --yes [--section walletsagentsdball]`Restore selected backup sections.
import <path> --yesAlias for restore.
inspect <path>Print backup metadata without restoring.
verify <path>Validate structure and embedded DB checksum.

Examples#

marketdeck backup create
marketdeck backup create --out ./marketdeck-backup.json
marketdeck backup create --include-db --include-cache --out ./full-local-backup.json
marketdeck backup inspect ./full-local-backup.json --format text
marketdeck backup verify ./full-local-backup.json --format json
marketdeck backup restore ./marketdeck-backup.json --yes
marketdeck backup restore ./full-local-backup.json --yes --section db

After restore, re-run marketdeck wallets set-secret for each real wallet. API keys and private keys never appear in the backup file.