mirror of
https://github.com/netinvent/npbackup.git
synced 2025-02-24 14:35:36 +08:00
Make sure we escape the exclusions
This commit is contained in:
parent
1fdfd7fcce
commit
b8cc4962ae
1 changed files with 2 additions and 2 deletions
|
@ -536,9 +536,9 @@ class ResticRunner:
|
|||
case_ignore_param = "i"
|
||||
|
||||
for exclude_pattern in exclude_patterns:
|
||||
cmd += " --{}exclude {}".format(case_ignore_param, exclude_pattern)
|
||||
cmd += " --{}exclude \"{}\"".format(case_ignore_param, exclude_pattern)
|
||||
for exclude_file in exclude_files:
|
||||
cmd += " --{}exclude-file {}".format(case_ignore_param, exclude_file)
|
||||
cmd += " --{}exclude-file \"{}\"".format(case_ignore_param, exclude_file)
|
||||
if exclude_caches:
|
||||
cmd += " --exclude-caches"
|
||||
if one_file_system:
|
||||
|
|
Loading…
Reference in a new issue