revert(backup): drop append-only for the desktop endpoint

A desktop holds both the plaintext and the repository password, so blocking
deletion on the server protects little while preventing the automatic
retention the client needs. Immutability belongs in the offsite copy.
This commit is contained in:
Ryan Yin authored and ryan4yin | 二花 committed 2026-09-21 20:38:08 +08:00
1 parent 5a017666f6
commit c3f0dbf8bd
3 files changed
+24 -25

No files matched your search

+8 -5
View File
@@ -59,15 +59,18 @@ in
modules.btrbk.enable = true;
# The restic REST server the desktops push their backups to. Append-only, so
# a compromised client still cannot delete history; private repos, so each
# client only reaches the repository named after its user. Credentials come
# from agenix; caddy terminates TLS in front of it.
# The restic REST server the desktops push their backups to. Private repos,
# so each client only reaches the repository named after its user. Credentials
# come from agenix; caddy terminates TLS in front of it.
#
# Deliberately NOT append-only: a desktop holds both the plaintext and the
# repository password, so protecting its backups from deletion buys little
# (a compromise is a compromise) while blocking the automatic retention the
# client needs. Immutability belongs in the offsite copy instead.
services.restic.server = {
enable = true;
listenAddress = "127.0.0.1:8000";
dataDir = "/data/backups/rest-server";
appendOnly = true;
privateRepos = true;
"htpasswd-file" = config.age.secrets."restic-rest-htpasswd".path;
};
-7
View File
@@ -33,13 +33,6 @@
# archives); a size cap beats guessing file types
excludeLargerThan = "500M";
# The server is append-only (it rejects deletion), so the client cannot
# forget or prune: retention has to be applied by hand, by running
# `restic forget --prune` while the server is temporarily not in
# append-only mode. Snapshots therefore accumulate here; deduplication
# keeps that cheap.
pruneOpts = [ ];
exclude = [
# Generic patterns only; this repository is public.
#