# Back up keys

A backup is an encrypted archive of the key material for the vaults you select. It can also include **Offchain**, the scope for exchange and API keys. Each archive is encrypted to one backup encryption-key entry, and only the matching offline private keys can recover it. Export regularly and store verified archives in durable, immutable storage.

Select **Backup** in the sidebar. The page has two tabs:

| Tab | Use it to |
|---|---|
| **Export** | See which entry each vault and Offchain uses, assign entries, and export backups |
| **Vault Backup Encryption Keys** | Review the available entries, their public keys, and the vaults that use them |

You also find a **Vault Backup** tab on each vault's page, for that vault alone.

## Permissions

| Action | Permission |
|---|---|
| View the Backup pages | **View System Resources** |
| Assign, replace, or remove a vault's entry | **Configure Vault Backup Encryption Keys** for that vault (or Offchain). This can require multi-user approval. |
| Export a backup | **Access Keys Backup** for every vault in the export, and for Offchain if included |

Export access and permission to change recipients are separate, so one person cannot silently redirect backups and export them. Buttons you cannot use stay disabled and explain why.

## Review the available entries

Backup encryption-key entries are defined in your deployment's infrastructure configuration. You cannot create, edit, or delete them in the app. See [Backup encryption-key entries](/deploy/operations/backup-dr#backup-encryption-key-entries).

1. Open **Backup**, then **Vault Backup Encryption Keys**. Each entry shows how many public keys it has and how many vaults use it.
2. Select an entry to see one public key per key store, with its scheme (**HPKE (X25519)** or **RSA-OAEP**) and a **Copy** button, and the **Linked vaults** that use it.

Before you assign an entry, confirm with your infrastructure administrator that these public keys match the private recovery keys in your custody.

## Assign an entry to a vault

1. On the **Export** tab, select **Configure** on the vault's row, or **Offchain**'s row. On a vault's **Vault Backup** tab, select **Configure keys**, or **Replace keys** if an entry is already assigned.
2. Select an entry and select **Continue**.
3. Check the public keys shown, then select **Assign keys** or **Replace keys**.

The Export tab shows each scope's entry, or **Not configured**. A vault cannot be exported until an entry is assigned.

The public keys shown belong to the entry, not to the assignment. If infrastructure later changes an entry's keys, future exports use the new keys without a new assignment.

### When the change needs approval

If Administrative Policy requires approval for this change, the dialog shows **Awaiting approval** with an **Open in Approval** link, and the current configuration stays active. Your pending change also appears above the Export table and on the vault's Vault Backup tab, and you cannot configure that scope again until the request ends. When approvers decide, the app tells you whether the change was applied. See [Review approval requests](/guide/approvals/manage).

### Remove an entry

Select **Configure** (or **Replace keys**), then **Remove keys**, and confirm. Backups that include the vault cannot be exported until an entry is assigned again. Removing an assignment does not delete existing archives.

## Export a backup

1. On the **Export** tab, select the vaults to include, and **Offchain** if needed. Use the search to find vaults; your selection is kept while you search.
2. Check the selection bar. It shows the entry the archive will be encrypted with, or the reason you cannot export yet.
3. Select **Export backup**, review the vaults and entry, and select **Export backup** again.
4. Confirm with your passkey.

The browser downloads `keys-backup-<UTC timestamp>.zip`. To export a single vault, use **Export backup** on its **Vault Backup** tab.

Export is blocked until:

* every selected vault has an entry assigned;
* all selected vaults use the same entry. Export vaults that use different entries separately;
* you have **Access Keys Backup** for every selected vault.

If the Crypto Vault refuses the export, the dialog shows the reason and keeps your selection.

## Verify the downloaded archive

The ZIP contains `backup.json`. For format `3`, verify:

* `exported_scopes` matches the vaults and offchain keys you intended to export.
* `backup_encryption_keys_id` and `parties` identify the intended recovery recipients.
* The key and vault counts, wallet records, and encrypted shares match your inventory.
* `error_logs` is empty. A successful download can still contain partial results.

Investigate missing material or errors before marking the backup complete. An archive cannot be recovered without the corresponding private recovery keys.

## Protect recovery keys and archives

Each entry has one public key per key store and an encryption scheme: HPKE with X25519 public keys, or RSA-OAEP-SHA-256 with ChaCha20-Poly1305. The entry assigned to a vault determines the recipients for its future exports.

Keep private recovery keys offline or in your approved recovery-key custody system, separate from both the running vault and the archives. Keep immutable archive copies in geographically separate locations. Retain the private keys required by older archives when changing a vault's assignment.

## Automate exports

Scheduled jobs use the [backup API workflow](/develop/backup-export) to inspect entries, set assignments, and download archives. Pass an explicit scope list: an API request without one selects every vault and `offchain`, including unconfigured scopes.

## Review the audit trail

Backup exports record the actor, timestamp, backup encryption-key entry, and exported scopes. Assignment changes record the previous and new entry. Review these events in the [audit log](/guide/audit-log/view-export) to confirm the export schedule and investigate recipient changes.

See [Backup & disaster recovery](/deploy/operations/backup-dr) for deployment configuration and storage guidance.
