From cd82b8342756b8350e917db1e2135af190f52225 Mon Sep 17 00:00:00 2001 From: teutat3s Date: Sat, 31 Aug 2024 22:05:11 +0200 Subject: [PATCH 1/2] obs-portal: fix backups, docker command does not need a TTY --- modules/obs-portal/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/obs-portal/default.nix b/modules/obs-portal/default.nix index dfd5793..da5b88e 100644 --- a/modules/obs-portal/default.nix +++ b/modules/obs-portal/default.nix @@ -158,7 +158,7 @@ in }; initialize = true; backupPrepareCommand = '' - ${pkgs.docker}/bin/docker exec -ti --user postgres obs-portal-db pg_dump obs > /tmp/obs-portal-backup.sql + ${pkgs.docker}/bin/docker exec -i --user postgres obs-portal-db pg_dump obs > /tmp/obs-portal-backup.sql ''; backupCleanupCommand = '' rm /tmp/obs-portal-backup.sql -- 2.44.1 From 44f708ec76b593e2ca9755d13f47b4f23d4b6df0 Mon Sep 17 00:00:00 2001 From: teutat3s Date: Mon, 9 Sep 2024 17:28:57 +0200 Subject: [PATCH 2/2] obs-portal: run backups 1h later to avoid lock conflict --- modules/obs-portal/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/obs-portal/default.nix b/modules/obs-portal/default.nix index da5b88e..b00718e 100644 --- a/modules/obs-portal/default.nix +++ b/modules/obs-portal/default.nix @@ -154,7 +154,7 @@ in "/tmp/obs-portal-backup.sql" ]; timerConfig = { - OnCalendar = "*-*-* 00:30:00 Etc/UTC"; + OnCalendar = "*-*-* 01:30:00 Etc/UTC"; }; initialize = true; backupPrepareCommand = '' -- 2.44.1