Loading nixos/modules/services/backup/postgresql-backup.nix +2 −5 Original line number Diff line number Diff line Loading @@ -124,10 +124,7 @@ in type = lib.types.separatedString " "; default = "-C"; description = '' Command line options for pg_dump. This options is not used if `config.services.postgresqlBackup.backupAll` is enabled. Note that config.services.postgresqlBackup.backupAll is also active, when no databases where specified. Command line options for pg_dump or pg_dumpall. ''; }; Loading Loading @@ -177,7 +174,7 @@ in ]; }) (lib.mkIf (cfg.enable && cfg.backupAll) { systemd.services.postgresqlBackup = postgresqlBackupService "all" "pg_dumpall"; systemd.services.postgresqlBackup = postgresqlBackupService "all" "pg_dumpall ${cfg.pgdumpOptions}"; }) (lib.mkIf (cfg.enable && !cfg.backupAll) { systemd.services = lib.listToAttrs ( Loading nixos/tests/postgresql/postgresql.nix +1 −0 Original line number Diff line number Diff line Loading @@ -65,6 +65,7 @@ let services.postgresqlBackup = { enable = true; databases = lib.optional (!backupAll) "postgres"; pgdumpOptions = "--restrict-key=ABCDEFGHIJKLMNOPQRSTUVWXYZ"; }; }; Loading Loading
nixos/modules/services/backup/postgresql-backup.nix +2 −5 Original line number Diff line number Diff line Loading @@ -124,10 +124,7 @@ in type = lib.types.separatedString " "; default = "-C"; description = '' Command line options for pg_dump. This options is not used if `config.services.postgresqlBackup.backupAll` is enabled. Note that config.services.postgresqlBackup.backupAll is also active, when no databases where specified. Command line options for pg_dump or pg_dumpall. ''; }; Loading Loading @@ -177,7 +174,7 @@ in ]; }) (lib.mkIf (cfg.enable && cfg.backupAll) { systemd.services.postgresqlBackup = postgresqlBackupService "all" "pg_dumpall"; systemd.services.postgresqlBackup = postgresqlBackupService "all" "pg_dumpall ${cfg.pgdumpOptions}"; }) (lib.mkIf (cfg.enable && !cfg.backupAll) { systemd.services = lib.listToAttrs ( Loading
nixos/tests/postgresql/postgresql.nix +1 −0 Original line number Diff line number Diff line Loading @@ -65,6 +65,7 @@ let services.postgresqlBackup = { enable = true; databases = lib.optional (!backupAll) "postgres"; pgdumpOptions = "--restrict-key=ABCDEFGHIJKLMNOPQRSTUVWXYZ"; }; }; Loading