Update postgres version
This commit is contained in:
parent
dde04fafc2
commit
63d6bb90e7
|
@ -16,7 +16,7 @@ in
|
|||
services.postgresql = {
|
||||
enable = true;
|
||||
enableTCPIP = true;
|
||||
package = pkgs.postgresql_14;
|
||||
package = pkgs.postgresql_15;
|
||||
settings.listen_addresses = pkgs.lib.mkForce "127.0.0.1,172.17.0.1";
|
||||
};
|
||||
networking.firewall.extraCommands = "iptables -A INPUT -p tcp --destination-port 5432 -s 172.16.0.0/12 -j ACCEPT";
|
||||
|
|
|
@ -56,7 +56,7 @@ in
|
|||
--exclude-file=${inputs.self}/modules/misc/restic-client/excludes.txt \
|
||||
--tag ${cfg.tag} ${cfg.path}
|
||||
|
||||
${pkgs.sudo}/bin/sudo -u postgres ${pkgs.postgresql_14}/bin/pg_dumpall | \
|
||||
${pkgs.sudo}/bin/sudo -u postgres ${pkgs.postgresql_15}/bin/pg_dumpall | \
|
||||
${pkgs.restic}/bin/restic backup \
|
||||
--tag postgres \
|
||||
--stdin \
|
||||
|
|
Loading…
Reference in New Issue