VM backup/restore fixes, a VM plain export, and a smarter Prune. From @profusse's Home Assistant testing and @manilx's feedback. Thank you both.
Changed
- Prune now applies your retention policy. Previously Prune (Settings → Integrity & maintenance) only ran
restic prune- it reclaimed space but never enforced your keep-last/daily/weekly/monthly rules; retention only ran automatically after each backup, so a policy you'd just set didn't take effect until the next run. Now, when a retention policy is configured, Prune runsforget --keep-* --prune: it collapses snapshots per your rules and reclaims space, so clicking it enforces the policy on demand (e.g. two same-day snapshots merge to one with keep-daily). With no policy set it stays a plain space-reclaim, so it can never wipe a repo. Heads-up: this makes the Prune button able to remove snapshots beyond your keep rules - the confirmation dialog spells that out.
Fixed
- Live-snapshot restore no longer breaks hot-plugged devices. A live (snapshot) backup was capturing the running domain XML, which includes devices a guest hot-plugs at runtime - e.g. a serial/USB stick Home Assistant's USB manager adds on boot. Restoring that pinned the device in the config so the guest couldn't re-add it. BombVault now stores the persistent (inactive) definition for restore, so a live-snapshot restore behaves like a shutdown-backup restore and the guest re-adds its own runtime devices. (The guest agent is not required; it's only used opportunistically for quiescing.)
- Live snapshot survives a failing guest fsfreeze hook. Home Assistant's qemu-guest-agent fsfreeze hook can block (BackupManager during startup), which failed the whole quiesced snapshot. BombVault now retries the snapshot crash-consistent (without
--quiesce) instead of failing the backup. - Off-site replication indicator stays visible for fast replications. A near-instant replication (small repo, already seeded) used to flash the "off-site replication running" indicator by in under a second; it now lingers long enough to actually catch.
Added
- VM plain export (
.tar). A Docker-style "Export (plain tar)" for VMs writes<name>.tar.gzof the disk image(s) plus<name>.xml(the persistent definition) to the export folder, so you can keep a tool-free copy and restore it withvirsh define+ the disk - no BombVault or restic needed. Not encrypted (that's the point); restic stays the encrypted engine. A running VM is exported crash-consistent; for a clean image, export while it's shut off.
Image: ghcr.io/junkerderprovinz/bombvault:2.6.0 (also :2, :2.6, :latest) and docker.io/junkerderprovinz/bombvault:2.6.0, multi-arch (amd64 + arm64).