Expand description
The pure parts: a volume’s settings, and the names isb gives snapshots, staged restores and backup objects (and reads back for retention).
Structs§
- Staged
- A staged restore of
volumemade atstamp: the new volume, the disk device on the instance and where it is mounted. - Volume
Record - A volume’s stored settings with the scheduler’s anchor.
- Volume
Settings - What a user sets on a volume: its snapshot schedule and its hook.
Constants§
- AUTO
- Scheduled snapshots:
auto-<stamp>; only these are pruned. - BACKUP_
SNAPSHOT - The snapshot a backup exports from, deleted after it.
- DEFAULT_
HOOK_ TIMEOUT - How long the hook may run unless the settings say otherwise.
- HOOK_
PATH - Where an instance’s pre-snapshot hook lives.
- KEY_
RESTORE_ BY - KEY_
RESTORE_ FROM - KEY_
RESTORE_ INSTANCE - KEY_
RESTORE_ OF - incus volume config keys on a staged restore.
- KEY_
RESTORE_ STAMP - KEY_
TEMPORARY - A volume isb made for a moment (a backup’s export) and deletes.
- MANUAL
- Snapshot now, unnamed:
manual-<stamp>, kept until deleted. - MAX_
HOOK_ TIMEOUT - The longest a hook may be given.
- RESTORE_
ROOT - Where a staged restore is mounted inside the instance.
Functions§
- auto_
time - The time in an
auto-<stamp>snapshot’s name. - export_
volume - The temporary volume a backup exports from.
- parse_
volume_ key - A key
volume_keywrote: its volume, time and compression. - select_
snapshot_ prune - Which scheduled snapshots retention deletes:
auto-ones beyond the newestkeep. Manual and other snapshots are never touched. - select_
volume_ prune - Which volume backup objects retention deletes: those
volume_keywrote underprefixbeyond the newestkeep. - staged
- stamp
- A time as isb stamps names with:
20261003T090912Z. - validate_
snapshot_ name - A snapshot name a user gives.
- validate_
volume_ name - A custom volume’s name as isb accepts it: incus’ rules, and safe as a directory name.
- volume_
key - A volume backup’s object key.