# BLOB_RESTORE_BAD: Restore test found missing or damaged files in the backup datacentre

- Module: BLOB. Blob storage replication R2 → Hetzner (scout sync-blob-backup)
- Severity: Critical
- Impact: Operators. Organisation staff should take a look. Customers are not affected.
- Retry: Automatic. The platform retries or self-heals on its own.
- Reference: https://docs.bizkithub.com/en/system-codes/BLOB_RESTORE_BAD

## What happened

Daily restore test: a random sample of every organisation's files is downloaded from the geographically separate backup datacentre and hashed. Some sampled files were missing there or did not match their checksum (confirmed against the primary copy). One summary per day, not one per file. Transport errors are not counted as failures.

## Likely causes

- The object was deleted or damaged in the backup storage.
- The mirror copy was never fully written although the file was marked as backed up.

## How to resolve

1. Check the failing objects in the backup storage using the organisation storage slug and blob path.
2. Mark the affected files as not backed up so the mirror worker copies them again.

## Related codes

- BLOB_MIRROR_LAG: Files without a backup copy for more than 24 hours
- BKP_REVERIFY_BAD: Stored backup failed periodic re-verification
- BLOB_BAK_CRASH: File backup worker crashed mid-run
- BLOB_MIRROR_LRG: Large file could not be copied to the backup datacentre
- BLOB_SHA_DIFF: Large file hash differs from the stored checksum
- BLOB_BAK_NOENV: Blob backup worker ran without backup credentials
