fix: serialise the restic runs and drop the tube host #54
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/restic-collision"
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?
The hourly backup and the 04:00 maintenance started at the same moment, and the maintenance takes an exclusive lock on the repository, so the backup lost that run every day: its liveness probe failed on the lock and the init fallback reported the failure as "config file already exists". The journal keeps the proof on every host (21–26.11), and the same collision hit all hosts at today's boot, when both
Persistenttimers caught up at once.flock /run/restic.lock), so the schedule, a boot-time catch-up or a prune that outlives the hour can no longer overlap them;The second commit drops the tube host: inventory, host vars, playbook and SSH key. The jellyfin role stays, as a role describes one piece of software rather than the host that runs it; the pool-side SFTP user and its repository were left untouched.
Deployed to the eight remaining restic hosts (ai, chat, gateway, git, music, note, photo, vault); a second run is idempotent. Verified on gateway: a backup started while the lock was held by
flock /run/restic.lock sleep 15waited 16 s, then saved its snapshot withResult=success.