From 55ce6a8344befbee9c4b36df2d3c565a07f223d4 Mon Sep 17 00:00:00 2001 From: Brendan Taylor Date: Wed, 4 Jun 2025 10:05:58 -0600 Subject: [PATCH] nixos/borgmatic: do not use pg_dumpall when a format is set (#413251) (cherry picked from commit d0be8ff24246bb5101b4c1f5cf451f99bf2650de) --- nixos/modules/services/backup/borgmatic.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/services/backup/borgmatic.nix b/nixos/modules/services/backup/borgmatic.nix index f2f35f97d0dd..c6e0a1db048c 100644 --- a/nixos/modules/services/backup/borgmatic.nix +++ b/nixos/modules/services/backup/borgmatic.nix @@ -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";