1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2026-12-03 17:36:05 +00:00

feat(backups): verify a backup's files on demand

The daily target check only finds files that are gone. Verify (a ready
backup's Restore menu, superusers) runs backup.verify: it reads the
backup's files and those of the backups it builds on whole from the
target through a libvirt stream: each there, a disk at its size and in
its format on its base's file, the small files with their SHA-256, and
a disk with the SHA-256 recorded at its first verification. What is
wrong is kept on the backup and shown as Damaged; a target that cannot
be read fails the job and leaves the backup as it was. Progress in
bytes, cancellable.
This commit is contained in:
catborise 2026-11-19 15:25:20 +03:00
parent eeae606d08
commit 2cf7dbe577
14 changed files with 891 additions and 231 deletions

View file

@ -7,6 +7,7 @@ app_name = "vmbackups"
urlpatterns = [
path("", views.index, name="index"),
path("<uuid:uuid>/delete/", views.delete, name="delete"),
path("<uuid:uuid>/verify/", views.verify, name="verify"),
path("<uuid:uuid>/restore/", views.restore, name="restore"),
path("<uuid:uuid>/restore-over/", views.restore_over, name="restore_over"),
path("<uuid:uuid>/restore-disk/", views.restore_disk, name="restore_disk"),