Make sure we escape the exclusions

This commit is contained in:
Orsiris de Jong 2023-05-04 11:30:39 +02:00
parent 1fdfd7fcce
commit b8cc4962ae

View file

@ -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: