1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2026-12-02 17:06:09 +00:00
webvirtcloud/vmbackups/tests
catborise db4cbf806a feat(vmbackups): VM owners back up and restore their VMs within a quota
A permission 'Can back up instances' lets a user back up the VMs they
may change into targets open to VM owners, restore those backups over
the VM or as a new VM, and delete the backups they took by hand. Each job
checks the rights at admission and again when it runs.

- A backup quota (GiB, in the user's quota) counts the owner's own
  backups: a backup being made holds its estimate, what its disks and the
  files below them hold. An owner's backups run one at a time, so each
  run's check sees the others.
- An owner restores as a new VM on the VM's compute, into its first
  disk's pool, within the VM quota; the job counts in it until its VM is
  recorded, as a clone does.
- An owner's restore over the VM removes the disks it ran from once the
  switch is done, unless another VM uses them: the owner cannot remove
  them.
- Recovery never begins a deletion the job had not begun.

Superusers keep everything they had.
2026-11-17 19:40:24 +03:00
..
__init__.py feat(vmbackups): the backups app and its records 2026-11-17 07:32:35 +03:00
test_create.py feat(vmbackups): incremental scheduled backups of running VMs 2026-11-17 17:12:05 +03:00
test_delete.py feat(vmbackups): VM owners back up and restore their VMs within a quota 2026-11-17 19:40:24 +03:00
test_import.py feat(vmbackups): restore, delete, retention, check and import know chains 2026-11-17 17:12:05 +03:00
test_models.py feat(vmbackups): the backups app and its records 2026-11-17 07:32:35 +03:00
test_owners.py feat(vmbackups): VM owners back up and restore their VMs within a quota 2026-11-17 19:40:24 +03:00
test_policies.py feat(vmbackups): the schedule form sets how often a backup is full 2026-11-17 17:12:05 +03:00
test_policy_models.py feat(vmbackups): backup schedules' records; the worker runs the apps' periodic tasks 2026-11-17 10:18:04 +03:00
test_restore.py feat(vmbackups): restore, delete, retention, check and import know chains 2026-11-17 17:12:05 +03:00
test_restore_disk.py feat(vmbackups): pages and API for restoring over the VM and one disk 2026-11-17 16:10:17 +03:00
test_restore_over.py feat(vmbackups): restore, delete, retention, check and import know chains 2026-11-17 17:12:05 +03:00
test_schedule.py feat(vmbackups): restore, delete, retention, check and import know chains 2026-11-17 17:12:05 +03:00
test_targets.py feat(vmbackups): backup targets: a storage pool per host, checked to be one directory 2026-11-17 07:40:08 +03:00