diff --git a/nixos/modules/services/backup/pgbackrest.nix b/nixos/modules/services/backup/pgbackrest.nix index d6dd7b1f04c8..6e5880ba1f90 100644 --- a/nixos/modules/services/backup/pgbackrest.nix +++ b/nixos/modules/services/backup/pgbackrest.nix @@ -459,6 +459,9 @@ in user = "postgres"; }; }; + # If PostgreSQL runs on the same machine, any restore will have to be done with that user. + # Keeping the lock file in a directory writeable by the postgres user prevents errors. + services.pgbackrest.commands.restore.lock-path = "/tmp/postgresql"; services.postgresql.identMap = '' postgres pgbackrest postgres ''; diff --git a/pkgs/by-name/pg/pgbackrest/package.nix b/pkgs/by-name/pg/pgbackrest/package.nix index 9128586315b5..122516cbefbd 100644 --- a/pkgs/by-name/pg/pgbackrest/package.nix +++ b/pkgs/by-name/pg/pgbackrest/package.nix @@ -20,13 +20,13 @@ stdenv.mkDerivation (finalAttrs: { pname = "pgbackrest"; - version = "2.55.1"; + version = "2.56.0"; src = fetchFromGitHub { owner = "pgbackrest"; repo = "pgbackrest"; tag = "release/${finalAttrs.version}"; - hash = "sha256-A1dTywcCHBu7Ml0Q9k//VVPFN1C3kmmMkq4ok9T4g94="; + hash = "sha256-GDHpeTz85cgKTbcuaTlwJ1SUNMedSylqKWdrgH8Zp8Q="; }; strictDeps = true;