From fad740947d826c1c04c5162fb57a06ec64b7a449 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Sun, 10 Apr 2022 13:24:12 -0700 Subject: add a module for backup with restic Do a single backup for the host, instead of running multiple ones. --- modules/services/unifi/default.nix | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) (limited to 'modules/services/unifi/default.nix') diff --git a/modules/services/unifi/default.nix b/modules/services/unifi/default.nix index af7b059..c36860a 100644 --- a/modules/services/unifi/default.nix +++ b/modules/services/unifi/default.nix @@ -69,19 +69,6 @@ in { }; }; - age.secrets.restic-repo-systems.file = - ../../../secrets/restic/repo-systems.age; - - services.restic.backups = { - unifi = { - paths = [ "/var/lib/unifi" ]; - repository = "/data/slow/backups/systems"; - passwordFile = config.age.secrets.restic-repo-systems.path; - initialize = true; - timerConfig = { OnCalendar = "00:45"; }; - extraBackupArgs = [ "--tag unifi" ]; - pruneOpts = [ "--keep-daily 7" "--keep-weekly 4" ]; - }; - }; + my.services.backup = { paths = [ "/var/lib/unifi" ]; }; }; } -- cgit v1.2.3