Skip to content

Commit ce8e5b4

Browse files
committed
postgresql-backup: don't pass -C to pg_dumpall
this option is not supported.
1 parent 3e306d5 commit ce8e5b4

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

nixos/modules/services/backup/postgresql-backup.nix

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,8 @@ in
122122

123123
pgdumpOptions = lib.mkOption {
124124
type = lib.types.separatedString " ";
125-
default = "-C";
125+
default = lib.optionalString (!cfg.backupAll) "-C";
126+
defaultText = "-C (if not backing up all databases)";
126127
description = ''
127128
Command line options for pg_dump. This options is not used if
128129
`config.services.postgresqlBackup.backupAll` is enabled. Note that

0 commit comments

Comments
 (0)