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 snapshotindex/snapshots— Snapshot catalog with lightweight summariessnapshot/<hash>— Point-in-time backup snapshot metadatafilemeta/<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 nodeschunk/<hash>— Raw file data chunkskeys/<slot>— Encryption key slots (stored unencrypted)
Options
Suppress non-JSON output (alias for
-quiet). Only prints the JSON content without headers or spacing.Global Options
Examples
Display repository configuration
Inspect the latest snapshot pointer
View a specific snapshot
First, list snapshots to get the hash:Inspect multiple objects at once
Output clean JSON for scripting
Use-json to suppress headers and spacing:
View file metadata
Inspect encryption key slots
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 usingjq or other JSON tools:
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. Thecatcommand automatically decrypts them. - Unencrypted objects:
config,keys/*, andindex/*objects are always stored unencrypted - JSON formatting: Output is automatically pretty-printed with 2-space indentation unless
-jsonis specified - Hash prefixes: Object keys use full SHA-256 hashes. You can use the full hash from other commands like
list
Related Commands
cloudstic list— List all snapshots to get snapshot hashescloudstic ls— List files within a snapshotcloudstic check— Verify repository integrity