aboutsummaryrefslogtreecommitdiffstats
path: root/sys/services/restic
diff options
context:
space:
mode:
authorsils <sils@sils.li>2024-01-13 15:18:35 +0100
committersils <sils@sils.li>2024-01-13 15:18:35 +0100
commite9bede999cf6a2117b184c358f4227fb65f0b7f0 (patch)
treea7ce79d0deec1ddfba3f004e343e330bed6fe492 /sys/services/restic
parentfix(sys/services/restic): also backup /srv (diff)
downloadnix-config-e9bede999cf6a2117b184c358f4227fb65f0b7f0.zip
(sys/services/restic): add timerConfig
Diffstat (limited to 'sys/services/restic')
-rw-r--r--sys/services/restic/default.nix6
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;
+ };
};
};
}