Commit Graph
6 Commits
Author SHA1 Message Date
thalladaandClaude Opus 5.5 3b7b050259 Remove stale restic locks and retry when a repo is locked
If a restic process dies mid-operation (e.g. the SFTP connection drops)
it leaves a lock in the repo that blocks every later forget --prune and
check until it is manually removed.

When a restic command exits with code 11 (failed to lock repository),
both scripts now run a plain `restic unlock` and retry once. Without
--remove-all, restic only removes locks from dead processes on this
host or locks not refreshed in 30 minutes, so locks held by running
operations are never removed.

The integrity check now reports a lock conflict as "could not run"
instead of claiming the repository may be corrupted, and the
connectivity checks use --no-lock.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-25 15:12:14 -04:00
thallada c6e2736cd1 Swap deprecated --last option with --latest 1 2026-09-22 15:35:39 -04:00
thallada 9c26a0c48e Add --exclude option to the backup script 2026-09-22 16:21:44 +00:00
thallada e9b80eaa50 Add notes about crontab in readme 2025-10-12 16:55:11 +00:00
thallada c81dc96f0b Add README notes 2025-10-10 19:27:30 +00:00
thallada 428c4416c9 Initial commit: backup and integrity check scripts 2025-10-10 14:53:08 -04:00