From 4397798b73581f345c16e9cee9c46cb1e373b6ea Mon Sep 17 00:00:00 2001 From: notohh Date: Mon, 15 Jan 2024 02:41:52 -0500 Subject: [PATCH] restic: update --- hosts/ame/services/restic.nix | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/hosts/ame/services/restic.nix b/hosts/ame/services/restic.nix index a919444..aea790f 100644 --- a/hosts/ame/services/restic.nix +++ b/hosts/ame/services/restic.nix @@ -6,6 +6,9 @@ sops.secrets.restic-ame = { sopsFile = ../../../secrets/restic/secrets.yaml; }; + sops.secrets.ame-s3 = { + sopsFile = ../../../secrets/s3/secrets.yaml; + }; environment.systemPackages = [pkgs.restic]; services.restic = { backups = { @@ -26,15 +29,17 @@ "/home/*/.local/share/.var" ]; pruneOpts = [ - "--keep-daily=4" - "--keep-weekly=3" - "--keep-monthly=2" + "--keep-daily=7" + "--keep-weekly=6" + "--keep-monthly=5" ]; initialize = true; - repository = "/nas/restic"; + repository = "s3:https://s3.flake.sh/restic-ame"; passwordFile = config.sops.secrets.restic-ame.path; + environmentFile = config.sops.secrets.ame-s3.path; timerConfig = { OnCalendar = "daily"; + Persistent = true; }; }; };