From 1f4056f35799a5de43c5ef716bb541220f0a99eb Mon Sep 17 00:00:00 2001 From: RGBCube Date: Tue, 30 Apr 2024 12:56:07 +0300 Subject: [PATCH] Fix restic backups --- hosts/cube/restic/default.nix | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/hosts/cube/restic/default.nix b/hosts/cube/restic/default.nix index 882297a..23654d7 100644 --- a/hosts/cube/restic/default.nix +++ b/hosts/cube/restic/default.nix @@ -3,14 +3,23 @@ systemConfiguration { secrets.resticPassword.file = ./password.age; - services.restic.backups.varlib = { + services.restic.backups.general = { passwordFile = config.secrets.resticPassword.path; initialize = true; repository = "sftp:backup@disk:${config.networking.hostName}-varlib"; - paths = [ "/var/lib" ]; - exclude = [ "/var/lib/postgresql" ]; # TODO + paths = map (dir: "/var/lib/${dir}") [ + "dkim" + "forgejo" + "gitea-runner" + "grafana" + "mail" + "matrix-sliding-sync" + "matrix-synapse" + "nextcloud" + "postfix" + ]; timerConfig = { OnCalendar = "daily";