diff options
author | sils <sils@sils.li> | 2024-01-13 15:18:35 +0100 |
---|---|---|
committer | sils <sils@sils.li> | 2024-01-13 15:18:35 +0100 |
commit | e9bede999cf6a2117b184c358f4227fb65f0b7f0 (patch) | |
tree | a7ce79d0deec1ddfba3f004e343e330bed6fe492 /sys | |
parent | fix(sys/services/restic): also backup /srv (diff) | |
download | nix-config-e9bede999cf6a2117b184c358f4227fb65f0b7f0.tar.gz nix-config-e9bede999cf6a2117b184c358f4227fb65f0b7f0.zip |
(sys/services/restic): add timerConfig
Diffstat (limited to 'sys')
-rw-r--r-- | sys/services/restic/default.nix | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/services/restic/default.nix b/sys/services/restic/default.nix index a1bcdf6..2231b2a 100644 --- a/sys/services/restic/default.nix +++ b/sys/services/restic/default.nix @@ -29,6 +29,12 @@ "rclone.program='ssh -p 23 ${boxUser}@${boxUser}.your-storagebox.de -i ${config.age.secrets.resticssh.path}'" ]; repository = "rclone: "; # There is only one repository served + timerConfig = { + Requires = "network-online.target"; + OnUnitActiveSec = "30m"; + OnUnitInactiveSec = "2h"; + Persistent = true; + }; }; }; } |