about summary refs log tree commit diff
diff options
context:
space:
mode:
authorNguyễn Gia Phong <cnx@loang.net>2023-11-04 05:03:54 +0900
committerNguyễn Gia Phong <cnx@loang.net>2023-11-04 05:08:35 +0900
commit2f605ade4cdf42640d8f4c589058376da0e36248 (patch)
tree3b869089bdd25fe69bc5bd60d08617852b1e26e4
parent5db4d7b2c9c315a7f996a5c103ca9e62b8830862 (diff)
downloadnixos-conf-2f605ade4cdf42640d8f4c589058376da0e36248.tar.gz
Backup Matrix and IRC messages
Matrix media are yet to be backed up.
-rw-r--r--irc.nix1
-rw-r--r--matrix.nix1
2 files changed, 2 insertions, 0 deletions
diff --git a/irc.nix b/irc.nix
index 671b872..9c5b309 100644
--- a/irc.nix
+++ b/irc.nix
@@ -60,6 +60,7 @@ in {
         ensurePermissions."DATABASE soju" = "ALL PRIVILEGES";
       } ];
     };
+    postgresqlBackup.databases = [ "soju" ];
 
     soju = {
       enable = true;
diff --git a/matrix.nix b/matrix.nix
index bbc95d4..b88899f 100644
--- a/matrix.nix
+++ b/matrix.nix
@@ -124,6 +124,7 @@ in {
         ensurePermissions."DATABASE dendrite" = "ALL PRIVILEGES";
       } ];
     };
+    postgresqlBackup.databases = [ "dendrite" ];
   };
 
   systemd.services.dendrite.serviceConfig = {