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

(cherry picked from commit d0be8ff242)
This commit is contained in:
Brendan Taylor
2025-06-04 10:05:58 -06:00
committed by Erin of Yukis
parent 7bfd34a3d7
commit 55ce6a8344

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";