Skip to main content
The cat command displays the raw JSON content of repository objects. This is useful for inspecting the internal structure of your backup repository, debugging issues, or understanding how data is stored.

Usage

Object Key Patterns

You can inspect any repository object by its key pattern:
  • config: Repository configuration (encryption status, version, creation date)
  • index/latest: Mutable pointer to the most recent snapshot
  • index/snapshots: Snapshot catalog with lightweight summaries
  • snapshot/<hash>: Point-in-time backup snapshot metadata
  • filemeta/<hash>: File metadata (name, type, parents, content hash)
  • content/<hash>: Chunk manifests (list of chunk refs, or inline data for small files)
  • node/<hash>: HAMT internal/leaf nodes
  • chunk/<hash>: Raw file data chunks
  • keys/<slot>: Encryption key slots (stored unencrypted)
Use cloudstic list to get snapshot hashes, then inspect them with cloudstic cat snapshot/<hash>

Options

boolean
default:"false"
Write a JSON array of fetched objects to stdout. Each item includes the object key and decoded data.
boolean
default:"false"
Output raw, unformatted data. This is useful for verifying the integrity of objects by piping them directly into hashing tools like sha256. It disables JSON pretty-printing and does not append a trailing newline.

Global Options

Examples

Display repository configuration

Output:

Inspect the latest snapshot pointer

Output:

View a specific snapshot

First, list snapshots to get the hash:
Then inspect the snapshot:
Output:

Inspect multiple objects at once

When multiple objects are requested, headers are printed to separate the output:

Output clean JSON for scripting

Use -json to emit a single JSON array:
Output:

View file metadata

Output:

Inspect encryption key slots

Output:

Use Cases

Debugging

When troubleshooting repository issues, inspect the object hierarchy:

Understanding Repository Structure

Explore how Cloudstic stores data internally:

Scripting and Automation

Extract specific fields using jq or other JSON tools:

Verify object hash

Calculate the SHA-256 hash of a repository object to verify its key matches its content:

Notes

  • Read-only operation: This command only reads from the repository and never modifies data
  • Encrypted content: Content objects (content/*, chunk/*, filemeta/*, node/*, snapshot/*) are encrypted in encrypted repositories. The cat command automatically decrypts them.
  • Unencrypted objects: config, keys/*, and index/* objects are always stored unencrypted
  • JSON formatting: Default output pretty-prints object content. With -json, the command emits one structured JSON array for all requested objects.
  • Hash prefixes: Object keys use full SHA-256 hashes. You can use the full hash from other commands like list