postgresql.tests.postgresql.postgresql-backup-all: fix random dump (#433969)

authored by Wolfgang Walther and committed by GitHub 07dec819 701f74fe

+3 -5
+2 -5
nixos/modules/services/backup/postgresql-backup.nix
··· 124 type = lib.types.separatedString " "; 125 default = "-C"; 126 description = '' 127 - Command line options for pg_dump. This options is not used 128 - if `config.services.postgresqlBackup.backupAll` is enabled. 129 - Note that config.services.postgresqlBackup.backupAll is also active, 130 - when no databases where specified. 131 ''; 132 }; 133 ··· 177 ]; 178 }) 179 (lib.mkIf (cfg.enable && cfg.backupAll) { 180 - systemd.services.postgresqlBackup = postgresqlBackupService "all" "pg_dumpall"; 181 }) 182 (lib.mkIf (cfg.enable && !cfg.backupAll) { 183 systemd.services = lib.listToAttrs (
··· 124 type = lib.types.separatedString " "; 125 default = "-C"; 126 description = '' 127 + Command line options for pg_dump or pg_dumpall. 128 ''; 129 }; 130 ··· 174 ]; 175 }) 176 (lib.mkIf (cfg.enable && cfg.backupAll) { 177 + systemd.services.postgresqlBackup = postgresqlBackupService "all" "pg_dumpall ${cfg.pgdumpOptions}"; 178 }) 179 (lib.mkIf (cfg.enable && !cfg.backupAll) { 180 systemd.services = lib.listToAttrs (
+1
nixos/tests/postgresql/postgresql.nix
··· 65 services.postgresqlBackup = { 66 enable = true; 67 databases = lib.optional (!backupAll) "postgres"; 68 }; 69 }; 70
··· 65 services.postgresqlBackup = { 66 enable = true; 67 databases = lib.optional (!backupAll) "postgres"; 68 + pgdumpOptions = "--restrict-key=ABCDEFGHIJKLMNOPQRSTUVWXYZ"; 69 }; 70 }; 71