-
-
Save infinisil/1b5e4ca604b32909ccdb4fab10388b86 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/nixos/modules/services/backup/znapzend.nix b/nixos/modules/services/backup/znapzend.nix | |
index 762bb4b3867..3d133f82d20 100644 | |
--- a/nixos/modules/services/backup/znapzend.nix | |
+++ b/nixos/modules/services/backup/znapzend.nix | |
@@ -386,7 +386,7 @@ in | |
echo Resetting znapzend zetups | |
${pkgs.znapzend}/bin/znapzendzetup list \ | |
| grep -oP '(?<=\*\*\* backup plan: ).*(?= \*\*\*)' \ | |
- | xargs ${pkgs.znapzend}/bin/znapzendzetup delete | |
+ | xargs -I{} ${pkgs.znapzend}/bin/znapzendzetup delete "{}" | |
'' + concatStringsSep "\n" (mapAttrsToList (dataset: config: '' | |
echo Importing znapzend zetup ${config} for dataset ${dataset} | |
${pkgs.znapzend}/bin/znapzendzetup import --write ${dataset} ${config} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment