1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2026-12-02 17:06:09 +00:00
webvirtcloud/webvirtcloud
catborise f4559acbc7 feat(vmbackups): back up a running or shut-off VM into a target
A superuser backs a VM up from its new Backups tab, or with POST
/api/v1/backups/ (202 with the job); GET lists and reads backups. The
backup.create job holds the VM, its compute (shared) and the target, so
migrations, snapshots and power changes of the VM wait meanwhile.

- A shut-off VM's disks are copied one at a time into the target pool,
  flat, in their format (createXMLFrom); a cancel stops before the next.
- A running or paused VM's disks go by libvirt's push backup into
  volumes made first, as the live clone: the file systems frozen for its
  start when the guest agent answers (frozen), crash-consistent
  otherwise, or refused when frozen file systems are required. A guest
  that shuts down meanwhile does not end the backup.
- A running VM's NVRAM file is kept only when it reads the same after
  the copy as before it (three reads), so it is the capture point's.
- Then the NVRAM file, the definition and the manifest (written last)
  are uploaded and read back, and the row becomes ready with its files.
- Recovery thaws a frozen guest first, watches a push backup still
  running, finishes a copied backup, removes the files of a failed or
  cancelled one, and leaves a copy whose end libvirt cannot tell
  uncertain with its files named. The target pool is checked by UUID and
  its free space before anything is made.
2026-11-17 09:13:59 +03:00
..
tests feat(storages): a volume downloads from its pool page 2026-11-15 00:31:42 +03:00
__init__.py Initial commit 2015-02-27 10:53:51 +02:00
bootstrap_icons.py chore(deps): the icons come from the committed cache, not django-bootstrap-icons 2026-11-05 12:37:51 +03:00
common_tags.py chore: remove code nothing uses 2026-11-06 10:53:37 +03:00
gunicorn_worker.py feat(storages): a volume downloads from its pool page 2026-11-15 00:31:42 +03:00
log_context.py fix(logs): a job's rows carry the address it was asked from, and a cancel its own user 2026-11-07 14:36:44 +03:00
middleware.py fix(computes): a host's maintenance shows only its own bulk migration; the panel's refusals are not libvirt errors 2026-11-16 20:30:54 +03:00
serializers.py fix(api): an error's status says what it is, and its body is always {"detail"} 2026-11-07 13:29:46 +03:00
settings-dev.py chore(settings): settings-dev without obsolete keys 2026-11-06 11:01:51 +03:00
settings.py.template feat(vmbackups): the backups app and its records 2026-11-17 07:32:35 +03:00
test_runner.py fix(tests): the parallel test runner works on Python 3.14; CI tests 3.14 2026-11-07 21:47:09 +03:00
urls-api.py feat(vmbackups): back up a running or shut-off VM into a target 2026-11-17 09:13:59 +03:00
urls.py feat(vmbackups): backup targets: a storage pool per host, checked to be one directory 2026-11-17 07:40:08 +03:00
wsgi.py fix: stop ignoring SIGCHLD process-wide 2026-10-04 13:40:53 +03:00