Background
I use OpenClaw, an AI agent platform, and Timeshift for system backups on my Ubuntu desktop.
Current State
Timeshift has a CLI (timeshift) but its output is plain text and interactive, making it hard for automation tools to parse.
Feature Request
Add --json flag to all CLI commands:
-
Snapshot Management
timeshift --list --json — list all snapshots as JSON
timeshift --create --comments <text> --json — create snapshot, return JSON with snapshot ID
timeshift --delete --snapshot-id <id> --json — delete snapshot
-
Status & Config
timeshift --status --json — show current config (schedule, device, space used)
timeshift --check --json — check disk space and snapshot health
-
Restore Info
timeshift --list-files <snapshot-id> --json — list files in a snapshot
timeshift --restore --snapshot-id <id> --dry-run --json — show what would be restored
Use Case
An AI agent could:
- Monitor backup health and alert if no recent snapshots
- Suggest cleanup of old snapshots when disk is full
- Help restore specific files from snapshots
- Verify system state before/after updates
Implementation
Most data is already available internally. The main change is adding JSON serialization to the output formatter.
Background
I use OpenClaw, an AI agent platform, and Timeshift for system backups on my Ubuntu desktop.
Current State
Timeshift has a CLI (
timeshift) but its output is plain text and interactive, making it hard for automation tools to parse.Feature Request
Add
--jsonflag to all CLI commands:Snapshot Management
timeshift --list --json— list all snapshots as JSONtimeshift --create --comments <text> --json— create snapshot, return JSON with snapshot IDtimeshift --delete --snapshot-id <id> --json— delete snapshotStatus & Config
timeshift --status --json— show current config (schedule, device, space used)timeshift --check --json— check disk space and snapshot healthRestore Info
timeshift --list-files <snapshot-id> --json— list files in a snapshottimeshift --restore --snapshot-id <id> --dry-run --json— show what would be restoredUse Case
An AI agent could:
Implementation
Most data is already available internally. The main change is adding JSON serialization to the output formatter.