1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2026-12-02 17:06:09 +00:00
webvirtcloud/vmbackups/tests
catborise 72e270a87e feat(vmbackups): incremental scheduled backups of running VMs
A schedule with 'a full backup every N backups' above one makes a
checkpoint with each running VM's backup. The next builds on the
schedule's newest ready backup: the changed blocks are pushed into qcow2
volumes made with the base's file as backing file, by its name, as the
target pool's directory differs per host. The base is used only when its
chain is shorter than N, its disks are the VM's, every file of the chain
is in the target, and its checkpoint has a sized bitmap for every disk;
otherwise the backup is full and starts a chain.

Before each scheduled backup of a running VM, the VM's backup
checkpoints are pruned to each schedule's newest base. A checkpoint
libvirt no longer lists, as after a migration, is redefined first so
that its bitmap goes too.

A shut-off VM's backup checkpoints are forgotten before its external
snapshot: libvirt 11.10 makes no offline external snapshot while a
checkpoint exists. The next scheduled backup is then full.
2026-11-17 17:12:05 +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): pages and API for restoring over the VM and one disk 2026-11-17 16:10:17 +03:00
test_import.py feat(vmbackups): read the backups of a target into the panel 2026-11-17 09:14:11 +03:00
test_models.py feat(vmbackups): the backups app and its records 2026-11-17 07:32:35 +03:00
test_policies.py feat(vmbackups): the Schedules pages 2026-11-17 11:38:35 +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 a backup's TPM state 2026-11-17 13:55:16 +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): pages and API for restoring over the VM and one disk 2026-11-17 16:10:17 +03:00
test_schedule.py feat(vmbackups): schedules back VMs up daily, keep the newest, check targets 2026-11-17 11:38:31 +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