1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2026-12-03 17:36:05 +00:00
webvirtcloud/vmbackups/migrations/0009_backup_verify.py
catborise 2cf7dbe577 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.
2026-11-19 16:10:19 +03:00

23 lines
534 B
Python

# 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),
),
]