Use this when saving a known-good point before changes.
Checkpoint
A checkpoint in rollback and recovery is a saved known-good point, such as a config archive, VM snapshot or database savepoint, that the system can return to.
1. Checkpoints mark recoverable points.
2. Workflow checkpoints for resume.
3. VM/storage snapshots for rollback.
4. Clean up afterwards.
5. Don't keep long.
checkpoint → change → success (cleanup) or restore
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Verification path Verify boundary
Exercise failure-oriented cases such as partial snapshots, state/config version mismatch, encrypted secret dependencies omitted, stale checkpoint selected, restore tool incompatibility and checkpoint existing without tested restore semantics so the test covers failure cases, not only the happy path.
Step 2 Common mistakes Narrow the fault
- Checkpoints left in place for weeks.
Step 3 Where it fails Narrow the fault
Failure analysis for Rollback & Recovery → Checkpoint should follow the path through the components: live pre-state → quiesce/consistency boundary → checkpoint capture → durable storage/integrity → mutation → restore/resume decision. Tests should include edge cases such as partial snapshots, state/config version mismatch, encrypted secret dependencies omitted, stale checkpoint selected, restore tool incompatibility and checkpoint existing without tested restore semantics. Recovery should do not assume a checkpoint is usable from file existence alone; validate metadata/integrity, restore into a safe scope where possible, then perform independent state read-back before continuing.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- A checkpoint is a saved known-good point.
- Examples: config archive, VM snapshot, database savepoint.
- Remove checkpoints after the change is verified.
- Checkpoints in long workflows — resume points
- Snapshot/checkpoint before change — VM/storage
- Cleanup after success — hygiene
ReferenceWhy it matters1 section · depth on demand
In depth
In rollback and recovery, a checkpoint is a recorded known-good point that a system can return to: an on-device config checkpoint (NX-OS checkpoint), a VM snapshot, a Git tag of the deployed version, or a database restore point.
checkpoint pre-chg12345 ! NX-OS
rollback running-config checkpoint pre-chg12345
Documented example, not captured output.
Name checkpoints after the change, record them in the job log, and clean them up after the change is accepted.
ReferenceImportant terms & boundaries1 section · depth on demand
Mechanics
Checkpoint in Rollback & Recovery is owned at runtime by the automation system that captures a consistent recoverable snapshot of control state before or during a multi-step mutation. The durable intent is checkpoint policy defining what state/configuration must be captured, consistency boundary, retention, integrity protection and restore procedure. Reliable automation must carry stable identity across the path: change/run ID, checkpoint ID, target/version set, timestamp and integrity hash. The consumer-visible target is the exact control/data state needed to resume or restore the bounded automation scope. The key invariants are checkpoint represents a known consistency point, sensitive material is protected, restore compatibility is known and checkpoint creation success is independently verified before risky steps.
ReferenceConfiguration & state1 section · depth on demand
Lifecycle
Store and review checkpoint policy defining what state/configuration must be captured, consistency boundary, retention, integrity protection and restore procedure; pin or at least record implementation/model versions and keep environment-specific identity outside reusable logic where possible. The stable identity contract is change/run ID, checkpoint ID, target/version set, timestamp and integrity hash.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Rollback & Recovery > Checkpoint. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://developer.hashicorp.com/terraform/language/state/purpose · confidence 94%Quick lookup tables
Rollback & Recovery → Checkpoint · operational reference
Context-specific ownership, verification, output and failure-boundary lookup for Rollback & Recovery → Checkpoint.
| Layer | Rollback & Recovery → Checkpoint operational reference |
|---|---|
| Runtime/ownership | automation recovery checkpoints and state snapshots · the automation system that captures a consistent recoverable snapshot of control state before or during a multi-step mutation |
| Persistent intent | checkpoint policy defining what state/configuration must be captured, consistency boundary, retention, integrity protection and restore procedure |
| Verification | Create a checkpoint for a bounded fixture before mutation, record its ID/hash, perform a reversible change, restore/resume from the checkpoint, and compare authoritative pre/post state. |
| Expected interpretation | The checkpoint captures the reviewed state at one known boundary, can be located and validated by ID/hash, and restoration or resume returns the fixture to the documented state without unrelated drift. |
| Recovery boundary | do not assume a checkpoint is usable from file existence alone; validate metadata/integrity, restore into a safe scope where possible, then perform independent state read-back before continuing |
Deep reference
Healthy vs suspicious evidence
Output interpretation
At minimum retain run/change ID, checkpoint ID, capture timestamp, scope/object versions, checksum/integrity result, storage location, restore/resume ID and post-restore state comparison. The useful output makes ambiguity visible, links to the target identity from change/run ID, checkpoint ID, target/version set, timestamp and integrity hash, and provides enough context to safely decide whether a retry is permitted.