Files
David Logie e3a7d35cfc restic: only initialize repository when it does not exist
The pre-start check ran `restic cat config 2>/dev/null || restic init`, so any
failure (a stale lock, a wrong password, a network error) triggered `init`
on an existing repository. The unit then failed with the misleading
"config file already exists" and the real error was discarded.

Since restic 0.17 `cat config` takes a lock and exits 10 only when the
repository does not exist. Check with `--no-lock` and only run `init` on
exit code 10, as the NixOS module does.
2026-12-02 08:26:49 +01:00
..
2026-09-23 23:50:10 -05:00