summaryrefslogtreecommitdiff
path: root/hosts/vidhar/borg
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2022-11-08 08:50:32 +0100
committerGregor Kleen <gkleen@yggdrasil.li>2022-11-08 08:50:32 +0100
commitac65ace42a6391d04ffed747831aed6f855f8981 (patch)
treee47e40460175d7b3b0b8c0f36036ca69fcd0776c /hosts/vidhar/borg
parent5b3c59bf26ff8b9c38f3ca78451b42ad0014a585 (diff)
downloadnixos-ac65ace42a6391d04ffed747831aed6f855f8981.tar
nixos-ac65ace42a6391d04ffed747831aed6f855f8981.tar.gz
nixos-ac65ace42a6391d04ffed747831aed6f855f8981.tar.bz2
nixos-ac65ace42a6391d04ffed747831aed6f855f8981.tar.xz
nixos-ac65ace42a6391d04ffed747831aed6f855f8981.zip
...
Diffstat (limited to 'hosts/vidhar/borg')
-rw-r--r--hosts/vidhar/borg/default.nix6
1 files changed, 4 insertions, 2 deletions
diff --git a/hosts/vidhar/borg/default.nix b/hosts/vidhar/borg/default.nix
index 80ce9c7e..5e983434 100644
--- a/hosts/vidhar/borg/default.nix
+++ b/hosts/vidhar/borg/default.nix
@@ -26,9 +26,11 @@ let
26 Type = "oneshot"; 26 Type = "oneshot";
27 ExecStart = "${pkgs.borgbackup}/bin/borg ${utils.escapeSystemdExecArgs [ 27 ExecStart = "${pkgs.borgbackup}/bin/borg ${utils.escapeSystemdExecArgs [
28 "--lock-wait" "3600" 28 "--lock-wait" "3600"
29 "--log-json"
29 "--progress" 30 "--progress"
30 "check" 31 "check"
31 "--verify-data" 32 "--verify-data"
33 "--max-duration" "4500"
32 ]} %I"; 34 ]} %I";
33 Environment = [ 35 Environment = [
34 "BORG_BASE_DIR=/var/lib/borg" 36 "BORG_BASE_DIR=/var/lib/borg"
@@ -80,13 +82,13 @@ in {
80 systemd.timers."check-borg@${utils.escapeSystemdPath "/srv/backup/borg/jotnar"}" = { 82 systemd.timers."check-borg@${utils.escapeSystemdPath "/srv/backup/borg/jotnar"}" = {
81 wantedBy = [ "timers.target" ]; 83 wantedBy = [ "timers.target" ];
82 timerConfig = { 84 timerConfig = {
83 OnCalendar = "Sun *-*-02..08 01:30:00 Europe/Berlin"; 85 OnCalendar = "*-*-* 00:30:00 UTC";
84 }; 86 };
85 }; 87 };
86 systemd.timers."check-borg@${utils.escapeSystemdPath "yggdrasil.borgbase:repo"}" = { 88 systemd.timers."check-borg@${utils.escapeSystemdPath "yggdrasil.borgbase:repo"}" = {
87 wantedBy = [ "timers.target" ]; 89 wantedBy = [ "timers.target" ];
88 timerConfig = { 90 timerConfig = {
89 OnCalendar = "Sun *-*-02..08 01:30:00 Europe/Berlin"; 91 OnCalendar = "*-*-* 00:30:00 UTC";
90 }; 92 };
91 }; 93 };
92 94