Skip to main content
DEDUP DEDUPCRON STUDIO // BORGMATIC & BORG SLICE STUDIO 62 MB / 1M CHUNKS + ZSTD/LZ4 SSH | $6/TB SLICE VS GLACIER | BASELINE 2026-11-21
BorgmaticCron
BorgmaticCron Affiliate Notice: Outbound /go/ links marked rel="sponsored" may earn a partner commission at zero added cost (Affiliate Policy).
Repository & SSH Tuning

Fixing lock_wait Timeouts & Stale SSH PID Repository Locks

Prevent overlapping systemd runs from failing on lock contention and diagnose stale lock.exclusive files left behind after abrupt network drops.

lock_wait: 60 · ServerAliveInterval 30 · Safe break-lock

Fixing lock_wait Timeouts & Stale SSH PID Repository Locks
Telemetry baseline verified 2026-11-21 by DedupCron Studio.

Never Run borg break-lock Blindly in Automation

Automating borg break-lock before backups risks corrupting repository metadata if another legitimate borg create or compact process is still running. Always pair ServerAliveInterval=30 with lock_wait: 60 so dead SSH processes reap cleanly on their own.

Separating Check Schedules from Daily Backups

Configure Borgmatic checks frequency (e.g., repository every 2 weeks, archives monthly) inside the single serialized borgmatic service so checks run sequentially after create/prune/compact.

Measured Thresholds & Borgmatic Configuration

Lock Failure CausePrevention in config.yamlSafe Recovery
Overlapping Backup & Checklock_wait: 60 to 300 secondsWait for active PID before failing systemd unit
Dead TCP/SSH Sessionssh_command: -o ServerAliveInterval=30 -o ServerAliveCountMax=3Terminates zombie server-side borg serve within 90s
Client Power Loss CrashPersistent=true systemd timerVerify no live borg process on slice, then run borg break-lock
lock_wait: 60 · ServerAliveInterval 30 · Safe break-lock InterServer Slice ($6/TB)Vultr HF ($12+/mo)