mirror of
https://github.com/retspen/webvirtcloud
synced 2026-12-02 08:56:07 +00:00
A backup schedule (BackupPolicy) names its VMs, chosen or every VM of a compute at the time it runs (templates left out), a target, a daily time in the panel's time zone, how many backups of each VM to keep (one at least), whether frozen file systems are required, and the superuser its jobs run as. A run (BackupRun) records one VM's backup of one day, keyed by the VM's row, not its UUID, which two VM rows may share. A backup keeps the schedule that made it; deleting the schedule keeps its backups. A backup whose files are gone can be marked missing, and a target keeps when it was last checked. The worker runs the tasks apps register with register_periodic about once a minute, on a thread of their own, one pass at a time, each guarded: a pass stuck on a host takes no thread recovery or a cancel needs, and one failing task stops none of the others. Nothing registers one yet. backup.create takes the schedule that asked for it; one deleted while the job was queued leaves the backup without a schedule. |
||
|---|---|---|
| .. | ||
| js | ||
| __init__.py | ||
| fakes.py | ||
| proc_kinds.py | ||
| test_api.py | ||
| test_claims.py | ||
| test_conf.py | ||
| test_hold.py | ||
| test_kinds.py | ||
| test_models.py | ||
| test_panel_js.py | ||
| test_processes.py | ||
| test_public_error.py | ||
| test_recovery.py | ||
| test_redact.py | ||
| test_service.py | ||
| test_views.py | ||
| test_worker.py | ||