diff --git a/secret/backblaze.age b/secret/backblaze.age index 7a0e039..a97ce5b 100644 Binary files a/secret/backblaze.age and b/secret/backblaze.age differ diff --git a/shared/core/backups.nix b/shared/core/backups.nix index f6b2480..fe413c3 100644 --- a/shared/core/backups.nix +++ b/shared/core/backups.nix @@ -15,19 +15,22 @@ in with lib; { services.duplicity = { enable = true; secretFile = config.age.secrets."backblaze".path; - include = [ - "/home" - ]; + frequency = null; # We set this later + root = "/home"; + fullIfOlderThan = "1M"; exclude = [ "/home/**/.config" "/home/**/.cache" "/home/**/.cargo" - "/home/**/.local" # NixOS configuration, we keep that elsewhere. "/home/**/os" ]; targetUrl = "b2://005c7170636d5ef0000000001@${cfg.bucket}"; }; + systemd.services.duplicity.wants = ["network.target"]; + systemd.timers.duplicity.timerConfig."OnBootSec" = "20m"; + systemd.timers.duplicity.timerConfig."OnCalendar" = "daily"; + systemd.timers.duplicity.timerConfig."Persistent" = true; }; -} \ No newline at end of file +}