borg break-lock /backup/repo

Category: Backup & Restore

borg break-lock /backup/repo

Remove stale locks from a repository

Deletes leftover lock files after a crash or a killed borg process. Only run it when you are certain no other borg command is using the repository, since breaking an active lock can corrupt it. Normal lock cleanup happens automatically on the next command.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.