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:
parent
eeae606d08
commit
2cf7dbe577
14 changed files with 891 additions and 231 deletions
23
vmbackups/migrations/0009_backup_verify.py
Normal file
23
vmbackups/migrations/0009_backup_verify.py
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
# Generated by Django 5.2.18 on 2026-11-19 12:21
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('vmbackups', '0008_policy_tag'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='backup',
|
||||
name='damage',
|
||||
field=models.JSONField(default=list),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='backup',
|
||||
name='verified_at',
|
||||
field=models.DateTimeField(null=True),
|
||||
),
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue