From 01173ce4a94baebbe767ee6fb744bcf67d84548f Mon Sep 17 00:00:00 2001 From: Daniel Langbein Date: Thu, 11 Apr 2024 12:05:00 +0200 Subject: [PATCH] change backup time from 12pm to 12am --- hosts/yodaHedgehog/host-specific.nix | 4 ++-- modules/btrbk/backup.nix | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hosts/yodaHedgehog/host-specific.nix b/hosts/yodaHedgehog/host-specific.nix index 9d3b517..24da615 100644 --- a/hosts/yodaHedgehog/host-specific.nix +++ b/hosts/yodaHedgehog/host-specific.nix @@ -30,7 +30,7 @@ in timerConfig = { OnCalendar = [ # Daily - "*-*-* 00:05:00" + "*-*-* 12:05:00" ]; WakeSystem = true; }; @@ -62,7 +62,7 @@ in # Wait until ${backup-source} is reachable. # # This test is necessary because of the following: - # If the system wakes up at 00:05, it is not directly connected to the Internet. + # If the system wakes up at 12:05, it is not directly connected to the Internet. # The config option `after = [ "network-online.target" ];` does not help in this regard. # Thus, `btrbk` might fail with the following error while connecting to ${backup-source}: # ssh: Could not resolve hostname p1st.de: Name or service not known diff --git a/modules/btrbk/backup.nix b/modules/btrbk/backup.nix index 35ff422..4322428 100644 --- a/modules/btrbk/backup.nix +++ b/modules/btrbk/backup.nix @@ -50,7 +50,7 @@ in # `services.btrbk.instances` template. { "${x.instance}" = { - onCalendar = if (x.enable or true) then "00:05" else null; + onCalendar = if (x.enable or true) then "12:05" else null; settings = { timestamp_format = "long"; stream_compress = mkIf ((x.lz4 or false) && strings.hasPrefix "ssh://" x.volume) "lz4";