Pcornel
Virtualization · VM Backup

File-level Restore

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

Back to the Topic

Answer

Granular restore usually mounts, indexes or extracts guest filesystem content from an image-level or guest-level backup. It must preserve the required file content and, where relevant, metadata such as permissions, ownership, timestamps or alternate streams.

Remember

  • File-level restore ≠ full VM recovery.
  • Recovered bytes ≠ correct ACL/ownership/metadata.
  • Restoring in place can overwrite newer data.
  • Application files may require application-aware restore rather than raw file copy.

First checks

  • proxmox-backup-client mount ... — mount backup for files
  • Mount-VHD <backup.vhdx> -ReadOnly — Hyper-V file restore
  • restic restore <snap> --include <path> — guest-level restore

Verify in this order

image backup → mount → copy files

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 → File-level Restore reference map

BoundaryMeaningEvidence limit
SelectionExact point/pathAvoid wrong-version recovery
ExtractionRead object from backupProves object availability
MetadataACL/owner/timestamps as neededMay require explicit handling
ValidationContent/app use is correctFinal evidence

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

Confirmation

Confirm action

Continue?