From 25e087d7eb6c03ac232baf52d34cdc0d6b186413 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Tue, 18 Mar 2025 08:42:07 +0000 Subject: [PATCH] timelapse-r11: reduce load on fwminex --- hosts/fwminex/configuration.nix | 2 +- hosts/vno3-nk/configuration.nix | 16 +++------------- 2 files changed, 4 insertions(+), 14 deletions(-) diff --git a/hosts/fwminex/configuration.nix b/hosts/fwminex/configuration.nix index e07eb5d..f7ef7ca 100644 --- a/hosts/fwminex/configuration.nix +++ b/hosts/fwminex/configuration.nix @@ -506,7 +506,7 @@ in timelapse-r11 = { enable = true; - onCalendar = "*:*:0"; + onCalendar = "*-*-* *:0/5:00"; secretsEnv = config.age.secrets.timelapse.path; }; diff --git a/hosts/vno3-nk/configuration.nix b/hosts/vno3-nk/configuration.nix index 3deec9f..4b7c15b 100644 --- a/hosts/vno3-nk/configuration.nix +++ b/hosts/vno3-nk/configuration.nix @@ -102,7 +102,7 @@ in timelapse-r11 = { enable = true; - onCalendar = "*:*:30"; # 30'th second every minute + onCalendar = "*-*-* *:*:30"; # 30'th second every minute secretsEnv = config.age.secrets.timelapse.path; }; @@ -136,16 +136,7 @@ in passwordPath = config.age.secrets.borgbackup-password.path; sshKeyPath = "/etc/ssh/ssh_host_ed25519_key"; dirs = - [ - { - subvolume = "/"; - repo = "${fwminex}:${this}-timelapse-r11"; - paths = [ "var/lib/private/timelapse-r11" ]; - backup_at = "*-*-* 02:01:00 UTC"; - compression = "none"; - } - ] - ++ (builtins.concatMap + builtins.concatMap ( host: let @@ -163,8 +154,7 @@ in [ rsync-net fwminex - ] - ); + ]; }; btrfssnapshot = {