fixed issue with restic not forming command properly

This commit is contained in:
Paul Wilde 2024-08-27 20:29:56 +01:00
parent 1f9c53b3f2
commit 708f452e9b
2 changed files with 3 additions and 3 deletions

View file

@ -16,7 +16,7 @@ proc genBackupCommand*(repo: string, sources: seq[string], further_args: seq[str
for source in sources:
source_dirs &= fmt""""{source}" """
let args = further_args.join(" ")
let cmd = fmt"{RESTIC_BIN} backup -r {repo} {sources} {args}"
let cmd = fmt"{RESTIC_BIN} backup -r {repo} {source_dirs} {args}"
return cmd
proc genRestoreCommand*(repo_snapshot: string, destination: string, further_args: seq[string]): string =