Merge pull request 'borgbackup: drop comment from string' (#875) from Mic92-main into main
checks / check-links (push) Successful in 21s Details
checks / checks (push) Successful in 32s Details
checks / checks-impure (push) Successful in 1m53s Details

Reviewed-on: #875
This commit is contained in:
Mic92 2024-02-22 14:45:07 +00:00
commit 9dc362437c
1 changed files with 3 additions and 4 deletions

View File

@ -73,10 +73,9 @@ in
clanCore.backups.providers.borgbackup = {
# TODO list needs to run locally or on the remote machine
list = ''
${lib.concatMapStringsSep "\n" (dest: ''
# we need yes here to skip the changed url verification
yes y | borg-job-${dest.name} list --json | jq -r '. + {"job-name": "${dest.name}"}'
'') (lib.attrValues cfg.destinations)}
# we need yes here to skip the changed url verification
${lib.concatMapStringsSep "\n" (dest: ''yes y | borg-job-${dest.name} list --json | jq -r '. + {"job-name": "${dest.name}"}' '')
(lib.attrValues cfg.destinations)}
'';
create = ''
${lib.concatMapStringsSep "\n" (dest: ''