Skip to main content

Module export

Module export 

Source
Expand description

A volume backup’s run, for crate::backup: hook, snapshot, a temporary volume copied from the snapshot, incus’ export of it (uncompressed tar) compressed and streamed to the bucket, then the temporary volume, the export and the snapshot deleted.

The snapshot is what makes it consistent: the export is of a volume nothing writes to, taken right after the hook. incus writes its export to its own backups directory on the host while it is read; that copy goes when the run ends (and incus expires it after a day if isb could not).

Functions§

backup_once
One volume backup: export, upload, verify, prune.
check_source
What a volume backup’s source must be: a volume in the org.
files
A volume backup’s objects in its bucket, newest first.