Use this topic when backup jobs create snapshots, when snapshot chains remain after backup, or when someone equates a hypervisor snapshot with the backup itself.
Snapshot-based Backup
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.
1. Snapshot-based backup takes a temporary snapshot, copies, then deletes it.
2. Leftover snapshots grow and slow VMs.
3. Check after every job.
4. Quiesce for consistency.
5. Large deltas during long backups.
snapshot → read frozen disk → delete snapshot
Inspect the production disk chain and restore the committed point without relying on the original snapshot.
Continue only after interpreting the current observation.Context & applicabilityCommon mistakes · platform/version boundaries
It does not show every snapshot is application-consistent or that unrelated snapshot chains are safe.
Next check: Inspect the production disk chain and restore the committed point without relying on the original snapshot.
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
VM disk → snapshot/checkpoint → backup reader → repository → catalog commit → consolidation → restored copy
Step 2 Common mistakes Narrow the fault
- No quiescing for databases.
- Snapshots left after failed backups.
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.
- 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.
qm listsnapshot <vmid>— temporary backup snapshots gone?Get-VMSnapshot -VMName * | ? Name -match backup— leftover checkpointsvirsh snapshot-list <vm>— libvirt
ReferenceWhat it is1 section · depth on demand
How it works
1. Backup software asks the hypervisor for a snapshot (quiesced via guest agent/VSS).
2. It reads the frozen disks (often only changed blocks via CBT/RCT/dirty bitmaps).
3. The snapshot is deleted and the delta merged.
Failures in step 3 leave orphaned snapshots — monitor for them.
ReferenceImportant terms & boundaries1 section · depth on demand
In depth
What "snapshot mode" means in Proxmox VE
The Proxmox backup chapter describes snapshot mode as the mode with the lowest downtime at the cost of a small inconsistency risk: VMs are backed up live, and with the QEMU guest agent enabled, file systems are frozen and thawed for better consistency.
vzdump 101 --mode snapshot --storage pbs01 --notes-template '{{guestname}}'
qm config 101 | grep agent # agent: 1 → fs-freeze/thaw during backup
qm agent 101 ping
How it works for VMs
QEMU starts a backup job inside the running process. Blocks the guest is about to overwrite are copied first (copy-before-write), so the backup sees the disk as it was at the start. This is not a storage-level snapshot; it works on any storage. Optional fleecing caches those old blocks on fast local storage instead of sending them straight to a slow target, protecting guest I/O at the cost of extra space.
Consistency levels
| Situation | Consistency |
|---|---|
| No guest agent | Crash-consistent — like pulling the power |
| Guest agent with fs-freeze | File-system consistent |
| Windows with agent + VSS | Application-consistent for VSS-aware apps |
| Databases without their own hooks | File-system consistent; use DB dumps or pre-freeze hooks for transaction consistency |
Things that break or slow snapshot backups
| Symptom | Cause |
|---|---|
| Guest freezes or I/O stalls during backup | Slow target; enable fleecing or a faster datastore |
fs-freeze timeout in the task log | Guest agent hung, or an application blocking freeze — check agent service |
| Backup much larger than used space | No discard/TRIM in the guest; enable discard=on and run fstrim |
Lock error VM is locked (backup) after a crash | Stale lock — confirm no backup runs, then qm unlock 101 |
Restore test
A backup is proven only by a restore: qmrestore to a new VMID on an isolated network, boot, and check the application.
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 VM Backup → Snapshot-based Backup. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://pve.proxmox.com/pve-docs/chapter-vzdump.html · confidence 94%Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Quick lookup tables
VM Backup → Snapshot-based Backup reference map
Fast backup/recovery boundaries for VM Backup → Snapshot-based Backup.
| Boundary | Meaning | Evidence limit |
|---|---|---|
| Snapshot | Stable capture view | Not durable backup by itself |
| Transfer | Data copied away | Can fail after snapshot creation |
| Commit | Repository/catalog finalised | Should precede cleanup |
| Cleanup | Snapshot merged/removed | Verify production chain |