Expand description
The pre-snapshot hook: before isb snapshots a volume, each running
instance using it runs its executable /etc/isb/pre-snapshot (if it has
one), as root, with a timeout, so an image can make its own state
consistent first (a SQLite checkpoint, a flushed session file). Its
output goes to the run’s log. A failure is reported; it stops the
snapshot only when the volume’s settings say hook_required.
Structs§
- Hook
Result - Incus
Hooks - Hooks run through incus, in the org’s project.
Enums§
- Hook
Status - How one instance’s hook went.
Traits§
- Hook
Runner - Where hooks run: incus, or a fake in tests.
Functions§
- run_
hooks - Run the hook in each of
instances(the running ones using the volume).Erronly when a hook failed andrequiredis set: the snapshot must not be taken.