borg check --repair /backup/repo

Category: Backup & Restore

borg check --repair /backup/repo

Attempt to repair repository damage

Rebuilds broken index and archive metadata where possible, salvaging what it can. It may lose data it cannot fix, so only run it after borg check reported problems. Ideally restore your most important archive elsewhere before repairing.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.