Storage, volumes, snapshots, and backups
Storage is where Incus keeps instance disks, custom volumes, images, and snapshots.
Official docs:
- Storage: https://linuxcontainers.org/incus/docs/main/explanation/storage/
- Storage pools: https://linuxcontainers.org/incus/docs/main/howto/storage_pools/
Inspect storage
Common drivers:
dir: simplest, easy to understand, slower snapshots/clones;zfs: excellent snapshots/clones, good for homelabs with ZFS;btrfs: snapshot-friendly on Btrfs systems;lvm: block-backed storage with thin provisioning options.
Instance root disks
Show devices:
Resize a root disk if the storage driver supports it:
Custom storage volumes
Create a volume:
Attach it to an instance:
Remove from instance:
Delete the volume:
Snapshots
Instance snapshot:
incus snapshot web-01 before-upgrade
incus restore web-01 before-upgrade
incus delete web-01/before-upgrade
Volume snapshot:
incus storage volume snapshot default app-data before-change
incus storage volume restore default app-data before-change
incus storage volume delete default app-data/before-change
Export backups
Export an instance:
Import it:
For important services, test imports on another host before trusting backups.
Copy to another pool or host
Copy instance to another local name:
Copy to another remote:
Storage hygiene
Clean up:
- old stopped test instances;
- old snapshots;
- unused custom volumes;
- unused local images.
Backup habit
Before risky changes:
After verifying the change, remove temporary snapshots so storage does not silently fill up.