From 834982f9093ff1ea60d332565e73e03a86b3eab8 Mon Sep 17 00:00:00 2001 From: teutat3s <teutates@mailbox.org> Date: Fri, 7 Feb 2025 11:18:26 -0300 Subject: [PATCH] backups/matrix: add DB dump of matrix-authentication-service --- modules/matrix/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/matrix/default.nix b/modules/matrix/default.nix index d1b2fc2..321e329 100644 --- a/modules/matrix/default.nix +++ b/modules/matrix/default.nix @@ -340,6 +340,7 @@ in "/var/lib/matrix-appservice-irc" "/var/lib/mautrix-telegram" "/tmp/matrix-synapse-backup.sql" + "/tmp/matrix-authentication-service-backup.sql" ]; timerConfig = { OnCalendar = "*-*-* 05:00:00 Etc/UTC"; @@ -347,9 +348,11 @@ in initialize = true; backupPrepareCommand = '' ${pkgs.sudo}/bin/sudo -u postgres ${pkgs.postgresql}/bin/pg_dump -d matrix > /tmp/matrix-synapse-backup.sql + ${pkgs.sudo}/bin/sudo -u postgres ${pkgs.postgresql}/bin/pg_dump -d matrix-authentication-service > /tmp/matrix-authentication-service-backup.sql ''; backupCleanupCommand = '' rm /tmp/matrix-synapse-backup.sql + rm /tmp/matrix-authentication-service-backup.sql ''; pruneOpts = [ "--keep-daily 7"