summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDima <dgoldin+github@protonmail.ch>2021-06-27 09:39:23 +0200
committergithub-actions[bot] <github-actions[bot]@users.noreply.github.com>2021-06-27 16:38:12 +0000
commit892a6d4ce6b71c60aabd253ac417dc65a5c9df63 (patch)
tree65e8f23f32586f053e7724a536846e350d730914
parentMerge pull request #128161 from NixOS/backport-128150-to-release-21.05 (diff)
downloadnixpkgs-origin/backport-128282-to-release-21.05.tar.gz
nixos/duplicity: fix typo in subcommandorigin/backport-128282-to-release-21.05
In https://github.com/NixOS/nixpkgs/pull/120622 cleanup options were added, but `remove-all-inc-of-but-n-full` was misspelled and as such was not functioning. (cherry picked from commit 0a977cf125a86b5580de6e05bfeaa07aa54c4a78)
-rw-r--r--nixos/modules/services/backup/duplicity.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/services/backup/duplicity.nix b/nixos/modules/services/backup/duplicity.nix
index 1f6883ed02b7..6949fa8b995c 100644
--- a/nixos/modules/services/backup/duplicity.nix
+++ b/nixos/modules/services/backup/duplicity.nix
@@ -157,7 +157,7 @@ in
${dup} cleanup ${target} --force ${extra}
${lib.optionalString (cfg.cleanup.maxAge != null) "${dup} remove-older-than ${lib.escapeShellArg cfg.cleanup.maxAge} ${target} --force ${extra}"}
${lib.optionalString (cfg.cleanup.maxFull != null) "${dup} remove-all-but-n-full ${toString cfg.cleanup.maxFull} ${target} --force ${extra}"}
- ${lib.optionalString (cfg.cleanup.maxIncr != null) "${dup} remove-all-incr-but-n-full ${toString cfg.cleanup.maxIncr} ${target} --force ${extra}"}
+ ${lib.optionalString (cfg.cleanup.maxIncr != null) "${dup} remove-all-inc-of-but-n-full ${toString cfg.cleanup.maxIncr} ${target} --force ${extra}"}
exec ${dup} ${if cfg.fullIfOlderThan == "always" then "full" else "incr"} ${lib.escapeShellArgs (
[ cfg.root cfg.targetUrl ]
++ concatMap (p: [ "--include" p ]) cfg.include