A failed run kept the error as English text and the schedule page passed
the whole sentence to gettext, which found no catalog entry once values
were filled in. The run now keeps the error as messages (text and values),
as jobs do, and the page shows them with the new words filter.
- Retention counts keep in ready backups only and also deletes the
missing ones older than the oldest kept: an incremental whose files
were lost no longer pins its chain on the target forever.
- When another row takes a VM's place (a migration the destination's
VM list recorded first, or a move found by a sync), its backups,
schedule membership and today's schedule runs move with its owners:
owners keep their backups, retention and restore over still see
them, and the VM is not backed up twice that night.
An incremental backup is restored by copying its chain flat: every base's
disk file is checked first, as the backup's own, and a chain whose base's
row is gone is refused. A backup that a living backup builds on is not
deleted, by hand or by retention: retention deletes a chain only once all
of it is beyond keep, newest first; a failed backup holds no base. The
target check marks a backup missing when a base's file is gone. Reading a
target links each incremental backup to its base, read first, and leaves
one without its base unread. Restoring over the VM forgets its
checkpoints: its disks are replaced, and the next backup is full.
The worker's periodic pass (about once a minute) runs the schedules:
- Each enabled schedule's VMs are backed up once a local day, from the
schedule's time for 6 hours, as its owner. A late time's window goes
on after midnight; a time a spring-forward gap skips falls an hour
later, a repeated autumn time is its first. A run row per schedule,
VM row and day, and a submission key made from them, keep a worker
that stopped between the job and its row from backing a VM up twice.
- A busy target (one copy at a time) or an unreachable host is tried
again at the next pass; a host in maintenance is waited for. A VM not
started within the window, a VM that cannot be backed up (TPM) and a
schedule whose owner is no longer an active superuser get a run row
saying why. Times passed before a schedule was made are not run.
- Each compute's submissions are a task of their own: a hung host stops
no other compute's schedules.
- Retention: each schedule's ready backups of a VM beyond keep, oldest
first, one deletion a target at a time. The deletion checks again,
before it changes anything, that the backup is still beyond keep.
Backups by hand and backups of removed VMs are left alone.
- Each target is checked once a day by a backup.check job holding it: a
ready backup with a file gone, its manifest included, becomes missing
(restore refused, delete allowed); one whose files are back is ready
again. A pool no compute reaches marks nothing.
- A scheduled backup carries the end of its window: one that waited
past it for a worker slot, or whose host went into maintenance
meanwhile, ends without starting (checked after the host answered).
The jobs on a target alone (delete, read back, check) hold its computes
too, shared: the worker counts a job's hosts by these, so a hung host
takes no more than its share of the slots.