nixos/borgmatic: do not use pg_dumpall when a format is set (#413251)

This commit is contained in:
Brendan Taylor 2025-06-04 10:05:58 -06:00 committed by GitHub
parent bbedaa5b3d
commit d0be8ff242
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -25,7 +25,7 @@ let
in
{
pg_dump_command =
if d.name == "all" then
if d.name == "all" && (!(d ? format) || isNull d.format) then
"${as_user}${postgresql}/bin/pg_dumpall"
else
"${as_user}${postgresql}/bin/pg_dump";