nixos/pgbackup: Fix and refactor the postgres backup module#42133
nixos/pgbackup: Fix and refactor the postgres backup module#42133Mic92 merged 3 commits intoNixOS:masterfrom
Conversation
|
@GrahamcOfBorg test postgresql |
|
Success on aarch64-linux Attempted: tests.postgresql No partial log is available. |
|
Success on x86_64-linux Attempted: tests.postgresql No partial log is available. |
|
|
||
| period = mkOption { | ||
| default = "15 01 * * *"; | ||
| default = "*-*-* 01:15:00"; |
There was a problem hiding this comment.
Maybe we should rename this option? The type of both is string old values could break silently. Renaming the option would make this more obvious since the format is different.
There was a problem hiding this comment.
Yes, that seems more natural in the new version
There was a problem hiding this comment.
Adding:
(mkRemovedOptionModule [ "services" "postgresqlBackup" "period" ] "A systemd timer is now used instead of cron. The starting time can be configured via services.postgresqlBackup.startAt")
modules/rename.nix would make sense.
There was a problem hiding this comment.
OK. Do we need to also mention the change in the release notes?
There was a problem hiding this comment.
Probably not, the error message generated from mkRemovedOptionModule should be self-explanatory.
Motivation for this change
Fix the
postgresqlBackupmodule. At least in NixOS 18.03 the backup is broken, delivering empty backup files quietly (#41388).Things done
pgdumpOptionsto modulesandboxinnix.confon non-NixOS)nix-shell -p nox --run "nox-review wip"./result/bin/)