Skip to content

Commit

Permalink
different argument syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
creatorcary committed Nov 7, 2024
1 parent cfa6570 commit f006c1e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/middlewared/middlewared/plugins/cloud_backup/sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,7 @@ async def restic_backup(middleware, job, cloud_backup, dry_run):
if dry_run:
cmd.append("-n")

for excl in cloud_backup["exclude"]:
cmd.extend(["--exclude", excl])
cmd.extend(["--exclude=" + excl for excl in cloud_backup["exclude"]])

restic_config = get_restic_config(cloud_backup)

Expand Down

0 comments on commit f006c1e

Please sign in to comment.