Pcornel
Virtualization · VM Backup

Snapshot-based Backup

Cheat sheet · https://pcornel.dk/topic.php?topic=3626

Back to the Topic

Answer

The snapshot is normally a capture aid, not the final protection copy. A backup workflow creates or coordinates a point-in-time view, reads the protected blocks, commits them to repository storage, and then consolidates/removes transient snapshot state.

Remember

  • Snapshot-based backup ≠ snapshot-only protection.
  • Temporary snapshot creation can succeed while backup transfer fails.
  • Backup completion should include safe snapshot cleanup/consolidation.
  • Long-lived backup snapshots can increase capacity and performance risk.

First checks

  • qm listsnapshot <vmid> — temporary backup snapshots gone?
  • Get-VMSnapshot -VMName * | ? Name -match backup — leftover checkpoints
  • virsh snapshot-list <vm> — libvirt

Commands

qm unlock 101

Verify in this order

snapshot → read frozen disk → delete snapshot

Where it usually breaks

First mismatch in guest block/filesystem view → virtual controller/disk → hypervisor mapping → datastore/path → storage backend → durability/read-back; preserve identity/native error/pre-state before mutation.

VM Backup → Snapshot-based Backup reference map

BoundaryMeaningEvidence limit
SnapshotStable capture viewNot durable backup by itself
TransferData copied awayCan fail after snapshot creation
CommitRepository/catalog finalisedShould precede cleanup
CleanupSnapshot merged/removedVerify production chain

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3626

Confirmation

Confirm action

Continue?