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. --- hosts/tahoe/services.nix | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) (limited to 'hosts/tahoe') diff --git a/hosts/tahoe/services.nix b/hosts/tahoe/services.nix index a8badea..535eb8d 100644 --- a/hosts/tahoe/services.nix +++ b/hosts/tahoe/services.nix @@ -21,17 +21,11 @@ traefik = { enable = true; }; transmission = { enable = true; }; metrics-exporter = { enable = true; }; - }; - - services.restic.backups = { - media = { - paths = [ "/data/fast/music" "/data/fast/photos" "/data/fast/videos" ]; + backup = { repository = "/data/slow/backups/systems"; - passwordFile = config.age.secrets.restic-repo-systems.path; - timerConfig = { OnCalendar = "00:55"; }; - initialize = true; - extraBackupArgs = [ "--tag media" ]; - pruneOpts = [ "--keep-daily 7" "--keep-weekly 4" "--keep-monthly 12" ]; + timerConfig = { oncalendar = "00:15"; }; + passwordFile = config.age.secrets.restic-repo-systemms.path; + paths = [ "/data/fast/music" "/data/fast/photos" "/data/fast/videos" ]; }; }; } -- cgit 1.4.1