-
Notifications
You must be signed in to change notification settings - Fork 24
Snapshot Management
Maciej Mensfeld edited this page Feb 9, 2026
·
1 revision
Create container snapshots for checkpointing, rollback, and branching workflows.
# Auto-named snapshot (snap-YYYYMMDD-HHMMSS)
coi snapshot create
# Named snapshot
coi snapshot create checkpoint-1
# Include process memory state
coi snapshot create --stateful live
# Specific container
coi snapshot create -c coi-abc-1 backup# Current workspace container
coi snapshot list
# Specific container
coi snapshot list -c coi-abc-1
# All COI containers
coi snapshot list --all
# JSON output
coi snapshot list --format jsonNote: Requires container to be stopped first (coi container stop <name>)
# Restore with confirmation
coi snapshot restore checkpoint-1
# Skip confirmation
coi snapshot restore checkpoint-1 -f
# Restore with process state
coi snapshot restore checkpoint-1 --stateful# Delete specific snapshot
coi snapshot delete checkpoint-1
# Delete all (with confirmation)
coi snapshot delete --all
# Delete all without confirmation
coi snapshot delete --all -f# Text output
coi snapshot info checkpoint-1
# JSON output
coi snapshot info checkpoint-1 --format jsonWhen you don't specify a container, COI resolves it in this order:
- Uses
--containerflag if provided - Falls back to
COI_CONTAINERenvironment variable - Auto-resolves from current workspace if exactly one container exists
- Error if multiple containers found (use
--containerto specify)
-
Restore requires stopped container - Run
coi container stop <name>first -
Destructive operations require confirmation - Skip with
--forceflag - Complete state capture - Snapshots include container state and session data
- Stateful snapshots - Include process memory for live state preservation
- Checkpointing - Save state before risky operations
- Rollback - Restore to previous working state
- Branching experiments - Try different approaches from same starting point
- Backup - Preserve container state before major changes