From d0be8ff24246bb5101b4c1f5cf451f99bf2650de 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) --- 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 75dbf5fe1c77..632b7e6e72d9 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";