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";