git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #35073 from Infinisil/fix/znapzend

nixos/znapzend: fix when no previous zetup

commit296dca019bbcd4160e3a6cb3a82bbe6bebae9bbf authorMichael Raskin <7c6f434c@mail.ru> dateSun 25 Mar 2018, 17:29 (9 years ago) parent6a589dec2b8d14
1 file changed+1−1
nixos/modules/services/backup/znapzend.nix+1−1
nixos/modules/services/backup/znapzend.nix+1−1
@@ -386,7 +386,7 @@ in
386386 echo Resetting znapzend zetups
387387 ${pkgs.znapzend}/bin/znapzendzetup list \
388388 | grep -oP '(?<=\*\*\* backup plan: ).*(?= \*\*\*)' \
389− | xargs ${pkgs.znapzend}/bin/znapzendzetup delete
389+ | xargs -I{} ${pkgs.znapzend}/bin/znapzendzetup delete "{}"
390390 '' + concatStringsSep "\n" (mapAttrsToList (dataset: config: ''
391391 echo Importing znapzend zetup ${config} for dataset ${dataset}
392392 ${pkgs.znapzend}/bin/znapzendzetup import --write ${dataset} ${config}