borgbackup-list: fix empty backup case
This commit is contained in:
@@ -152,7 +152,7 @@ in
|
|||||||
# we need yes here to skip the changed url verification
|
# we need yes here to skip the changed url verification
|
||||||
''yes y | borg-job-${dest.name} list --json | jq '[.archives[] | {"name": ("${dest.name}::${dest.repo}::" + .name)}]' ''
|
''yes y | borg-job-${dest.name} list --json | jq '[.archives[] | {"name": ("${dest.name}::${dest.repo}::" + .name)}]' ''
|
||||||
) (lib.attrValues cfg.destinations)
|
) (lib.attrValues cfg.destinations)
|
||||||
}) | ${pkgs.jq}/bin/jq -s 'add'
|
}) | ${pkgs.jq}/bin/jq -s 'add // []'
|
||||||
'')
|
'')
|
||||||
(pkgs.writeShellScriptBin "borgbackup-restore" ''
|
(pkgs.writeShellScriptBin "borgbackup-restore" ''
|
||||||
set -efux
|
set -efux
|
||||||
|
|||||||
Reference in New Issue
Block a user