Skip to content

Commit

Permalink
Merge pull request #35073 from Infinisil/fix/znapzend
Browse files Browse the repository at this point in the history
nixos/znapzend: fix when no previous zetup
  • Loading branch information
7c6f434c committed Mar 25, 2018
2 parents 6a589de + c2b8d14 commit 296dca0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nixos/modules/services/backup/znapzend.nix
Expand Up @@ -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}
Expand Down

0 comments on commit 296dca0

Please sign in to comment.