Backup procedure

Description

Use BACKUP after each sensitive operation to preserve the temporary Stream Offline CA runtime. The appliance can create single Stream artifacts or self-contained restore bundles.

Do not shut down the appliance until backup files have been moved to approved media, hashes have been recorded, and media has been unmounted.

Backup media can be USB keys or USB disks. The appliance mounts the media when backup output must be copied, verifies copied file size and SHA-256 hash, syncs the filesystem, then unmounts the media before removal. Mounting and unmounting media does not change file content; manual file edits on backup media are not part of the approved workflow.

Backup modes

Mode Content Use case Records

BACKUP > SINGLE > CONFIG

Stream configuration archive.

Configuration-only record or targeted restore.

  • Filename

  • Size

  • SHA-256 hash

  • Stream Offline CA version

BACKUP > SINGLE > DATABASE

Stream MongoDB database backup.

Database-only record or targeted restore.

  • Filename

  • Size

  • SHA-256 hash

  • MongoDB backup timestamp

BACKUP > SINGLE > LICENSE

Currently installed Stream license after validation.

License recovery or license record.

  • License filename

  • Validation result

  • Media label

BACKUP > BUNDLE > PLAIN

Self-contained restore bundle, metadata, and recovery kit.

Controlled environments where media protection is handled outside the bundle.

  • Bundle filename

  • Metadata filename

  • Recovery kit filename

  • Hashes

BACKUP > BUNDLE > PASSWORD

Password-protected bundle with authenticated metadata.

Bundle transport where an additional bundle password is required.

  • Bundle filename

  • Metadata filename

  • HMAC sidecar

  • Recovery kit

  • Hashes

BACKUP > BUNDLE > SHAMIR

  • Encrypted Shamir bundle

  • Metadata

  • Recovery kit

  • Shares

Split custody backup where several holders must participate in restore.

  • Share count

  • Threshold

  • Share filenames

  • Custodian assignment

  • Metadata

  • HMAC sidecar

  • Recovery kit

Backup workflow

The first backup screen asks whether the operator wants to create one Stream artifact or a self-contained bundle.

Backup family selection between single artifact and bundle
  • Single backup

  • Bundle backup

  • Stream reference

  1. Select the artifact type.

  2. On tty1, open BACKUP.

  3. Choose SINGLE.

  4. Select CONFIG, DATABASE, or LICENSE.

    Single backup artifact selection
  5. Move and verify outputs.

  6. When prompted, move generated files to approved removable media.

  7. Verify that the workflow reports successful copy, sync, and unmount.

  8. Record the backup type, filenames, media labels, sizes, and SHA-256 hashes.

  1. Select the bundle protection mode.

  2. On tty1, open BACKUP.

  3. Choose BUNDLE.

  4. Select PLAIN, PASSWORD, or SHAMIR.

    Bundle backup protection mode selection
  5. For Shamir bundles, enter the approved share count and threshold, choose where shares are stored, then choose whether each share must have a different password.

  6. When per-share passwords are enabled, enter and confirm one different password for each generated share. Record the filename/password association through the approved offline custody process; the appliance stores only the KDF parameters and verifier in metadata, never the passwords themselves, and excludes both passwords and verifiers from the Recovery Kit.

  7. Move and verify outputs.

  8. Export bundle files, metadata, HMAC sidecar, recovery kit, and shares when applicable.

  9. Verify copy, sync, and unmount results.

  10. Record filenames, media labels, sizes, SHA-256 hashes, share count, threshold, and recovery kit filename.

For Shamir bundles, the share-storage prompt presents the USB export option before the bundle-directory option. Use USB export when separate custody requires one share per removable media item.

The appliance wraps the Stream backup and restore tools. Use Stream backup and restore to understand the underlying stream-backup and stream-restore commands. Use MongoDB backup and restore tools for MongoDB-level behavior when database backups need to be inspected outside the appliance workflow.

When the backup output is ready, the appliance asks whether the generated files must be moved to removable media immediately. Choosing Move starts the controlled USB mount, copy, verification, sync, and unmount sequence.

Prompt to move generated backup files to USB media

Backup security checklist

Before accepting a backup as valid, verify the following points.

Check Expected result

Generated files

The expected files are present:

  • Backup archive

  • Metadata

  • HMAC sidecar when applicable

  • Shamir shares when applicable

  • Recovery kit

Procedure file

The recovery kit exists and contains:

  • File roles

  • Restore workflow

  • Image version

  • Stream version

  • File sizes

  • SHA-256 hashes

It must not contain passwords, PINs, private keys, tokens, or Shamir share values.

License record

When a license is backed up or staged in a bundle, the license was found in the runtime path and validated with license-check.sh.

Metadata record

Bundle metadata names the selected archive and records archive and payload hashes. Protected bundles include the .metadata.json.hmac sidecar.

Media record

Each copied output has a recorded:

  • Media label

  • Destination filename

  • Size

  • SHA-256 hash

  • Copy result

  • Sync result

  • Unmount result

Custody record

Each removable media item is assigned to the approved custodian or storage location before shutdown.

File naming reference

Artifact Typical pattern Purpose

Configuration backup

stream-configuration-*.tar.gz

Stream configuration restore input.

Database backup

stream-db-*.gz

MongoDB database restore input.

License backup

stream-license-*.lic

Stream license restore input.

Plain or password bundle archive

backup-bundle-*.tar.gz

Self-contained bundle archive used with matching metadata.

Shamir bundle archive

backup-bundle-*.enc

Encrypted bundle archive that requires threshold share reconstruction before restore.

Bundle metadata

backup-bundle-*.metadata.json

  • Bundle manifest

  • Archive hash

  • Payload hashes

  • Protection mode

  • Restore parameters

Metadata HMAC sidecar

backup-bundle-*.metadata.json.hmac

Metadata authentication sidecar for protected bundles.

Shamir share file

backup-bundle-*.share-*.txt

One generated share of the bundle secret. Only the approved threshold is required to restore.

Recovery kit

stream-*-recovery-kit-*.txt

Printable restore aid with file roles and hashes.

Recovery kit filenames are specialized by workflow. Examples include stream-config-recovery-kit-*.txt, stream-bundle-shamir-recovery-kit-*.txt, and yubihsm-backup-recovery-kit-*.txt. The appliance no longer generates Markdown recovery kit files; keep the generated text file with the matching backup material.

Backup content

Depending on the selected mode, backup material can include:

  • Stream configuration

  • Stream database

  • Stream license

  • Encrypted Stream archive

  • Bundle metadata

  • Metadata HMAC sidecar

  • Shamir shares

  • Recovery kit

  • Appliance runtime state required to resume operations after restore.

The recovery kit contains restore information such as file roles, hashes, image versions, HSM notes, and restore instructions. It must not contain passwords, PINs, private keys, or Shamir share values.