Disaster recovery: repair corrupted archive from PAR2 #193
Labels
No labels
agent/review
priority/high
priority/low
priority/medium
status/blocked
status/wontfix
time/marathon
time/quickwin
type/bug
type/cicd
type/docs
type/feature
type/security
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
thwap/manta-archiver#193
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Implemented as part of Phase 6. PAR2‑based repair is now available in two modes:
reptar -V --repair -f archive.tar.gz– validates archive integrity, detects corrupted files via BLAKE3/CRC32 mismatches, and attempts reconstruction using stored parity data.reptar -x --repair -f archive.tar.gz– extracts files; if a file’s hash mismatches the stored metadata, the tool automatically reconstructs it from parity blocks before writing to disk.The core repair logic is in
internal/repair/reconstruct.goand is integrated intorunValidateandrunExtractincmd/reptar/main.go.