From 67b9b84e01e3605617823c049dd396c341448600 Mon Sep 17 00:00:00 2001 From: teutat3s Date: Wed, 15 May 2024 21:00:41 +0200 Subject: [PATCH] backups: reduce chances for lock race Start one backup per hour each night --- modules/forgejo/default.nix | 2 +- modules/keycloak/default.nix | 2 +- modules/mailman/default.nix | 2 +- modules/mastodon/default.nix | 2 +- modules/nextcloud/default.nix | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/forgejo/default.nix b/modules/forgejo/default.nix index 7d8efc2..6b0ca96 100644 --- a/modules/forgejo/default.nix +++ b/modules/forgejo/default.nix @@ -205,7 +205,7 @@ "/tmp/forgejo-backup.sql" ]; timerConfig = { - OnCalendar = "*-*-* 04:20:00 Etc/UTC"; + OnCalendar = "*-*-* 00:00:00 Etc/UTC"; }; initialize = true; passwordFile = config.age.secrets."restic-repo-storagebox".path; diff --git a/modules/keycloak/default.nix b/modules/keycloak/default.nix index 0eec853..bae4a91 100644 --- a/modules/keycloak/default.nix +++ b/modules/keycloak/default.nix @@ -86,7 +86,7 @@ services.restic.backups.keycloak-storagebox = { paths = [ "/tmp/keycloak-backup.sql" ]; timerConfig = { - OnCalendar = "*-*-* 04:10:00 Etc/UTC"; + OnCalendar = "*-*-* 03:00:00 Etc/UTC"; }; initialize = true; passwordFile = config.age.secrets."restic-repo-storagebox".path; diff --git a/modules/mailman/default.nix b/modules/mailman/default.nix index beb076e..958b04e 100644 --- a/modules/mailman/default.nix +++ b/modules/mailman/default.nix @@ -110,7 +110,7 @@ "/var/lib/postfix/conf/aliases.db" ]; timerConfig = { - OnCalendar = "*-*-* 04:15:00 Etc/UTC"; + OnCalendar = "*-*-* 02:00:00 Etc/UTC"; }; initialize = true; passwordFile = config.age.secrets."restic-repo-storagebox".path; diff --git a/modules/mastodon/default.nix b/modules/mastodon/default.nix index fd22f18..ecd7528 100644 --- a/modules/mastodon/default.nix +++ b/modules/mastodon/default.nix @@ -126,7 +126,7 @@ services.restic.backups.mastodon-storagebox = { paths = [ "/tmp/mastodon-backup.sql" ]; timerConfig = { - OnCalendar = "*-*-* 04:05:00 Etc/UTC"; + OnCalendar = "*-*-* 04:00:00 Etc/UTC"; }; initialize = true; passwordFile = config.age.secrets."restic-repo-storagebox".path; diff --git a/modules/nextcloud/default.nix b/modules/nextcloud/default.nix index dc09b65..cc485b1 100644 --- a/modules/nextcloud/default.nix +++ b/modules/nextcloud/default.nix @@ -164,7 +164,7 @@ "/tmp/nextcloud-backup.sql" ]; timerConfig = { - OnCalendar = "*-*-* 04:00:00 Etc/UTC"; + OnCalendar = "*-*-* 01:00:00 Etc/UTC"; }; initialize = true; passwordFile = config.age.secrets."restic-repo-storagebox".path;